X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=serpent.h;h=857b1b9cdeedd7c2918b19b02aa0fd1e68bceede;hp=07176d76d806f58faf7171fca9a847849ec7cd1b;hb=af43f0b77a10716921d13c047d1d3c39570cae17;hpb=3b83c93292fbf6c4e859ce513bdf54ad90733f96 diff --git a/serpent.h b/serpent.h index 07176d7..857b1b9 100644 --- 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, uint8_t plaintext[16], +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, uint8_t ciphertext[16], +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 */