chiark / gitweb /
serpent: const-correct
[secnet.git] / serpent.h
index 07176d76d806f58faf7171fca9a847849ec7cd1b..19c01fe435acc5354d9f8f6f03bfdbf780abfbed 100644 (file)
--- a/serpent.h
+++ b/serpent.h
@@ -8,12 +8,12 @@ struct keyInstance {
 
 /*  Function protoypes  */
 void serpent_makekey(struct keyInstance *key, int keyLen,
 
 /*  Function protoypes  */
 void serpent_makekey(struct keyInstance *key, int keyLen,
-                    uint8_t *keyMaterial);
+                    const uint8_t *keyMaterial);
 
 
-void serpent_encrypt(struct keyInstance *key, uint8_t plaintext[16],
+void serpent_encrypt(struct keyInstance *key, const uint8_t plaintext[16],
                     uint8_t ciphertext[16]);
 
                     uint8_t ciphertext[16]);
 
-void serpent_decrypt(struct keyInstance *key, uint8_t ciphertext[16],
+void serpent_decrypt(struct keyInstance *key, const uint8_t ciphertext[16],
                     uint8_t plaintext[16]);
 
 #endif /* serpent_h */
                     uint8_t plaintext[16]);
 
 #endif /* serpent_h */