X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=serpent.h;h=19c01fe435acc5354d9f8f6f03bfdbf780abfbed;hp=dbbd36e1f8ad3c1f0313efdc5dace56b7a1422d1;hb=4a1a591973e0be6f33a55b8f1fc5abc827f6969d;hpb=2fe58dfd10216a37f1ece081f926971882de112e diff --git a/serpent.h b/serpent.h index dbbd36e..19c01fe 100644 --- a/serpent.h +++ b/serpent.h @@ -8,12 +8,12 @@ struct keyInstance { /* Function protoypes */ void serpent_makekey(struct keyInstance *key, int keyLen, - uint8_t *keyMaterial); + 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 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]); #endif /* serpent_h */