chiark / gitweb /
logging: Provide lg_perror and lg_vperror
[secnet.git] / serpent.h
index dbbd36e1f8ad3c1f0313efdc5dace56b7a1422d1..857b1b9cdeedd7c2918b19b02aa0fd1e68bceede 100644 (file)
--- a/serpent.h
+++ b/serpent.h
@@ -8,12 +8,18 @@ struct keyInstance {
 
 /*  Function protoypes  */
 void serpent_makekey(struct keyInstance *key, int keyLen,
-                    uint8_t *keyMaterial);
+                    const uint8_t *keyMaterial);
+void serpentbe_makekey(struct keyInstance *key, int keyLen,
+                    const uint8_t *keyMaterial);
 
-void serpent_encrypt(struct keyInstance *key, uint32_t plaintext[4],
-                    uint32_t ciphertext[4]);
+void serpent_encrypt(struct keyInstance *key, const uint8_t plaintext[16],
+                    uint8_t ciphertext[16]);
+void serpentbe_encrypt(struct keyInstance *key, const uint8_t plaintext[16],
+                    uint8_t ciphertext[16]);
 
-void serpent_decrypt(struct keyInstance *key, uint32_t ciphertext[4],
-                    uint32_t plaintext[4]);
+void serpent_decrypt(struct keyInstance *key, const uint8_t ciphertext[16],
+                    uint8_t plaintext[16]);
+void serpentbe_decrypt(struct keyInstance *key, const uint8_t ciphertext[16],
+                    uint8_t plaintext[16]);
 
 #endif /* serpent_h */