X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/2fe58dfd10216a37f1ece081f926971882de112e..86420bb75f19f628ffd2d8ff9964e59ed99e3187:/serpent.h diff --git a/serpent.h b/serpent.h index dbbd36e..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, 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 */