Commit | Line | Data |
---|---|---|
2fe58dfd SE |
1 | #ifndef serpent_h |
2 | #define serpent_h | |
3 | ||
4 | struct keyInstance { | |
5 | uint32_t key[8]; /* The key in binary */ | |
6 | uint32_t subkeys[33][4]; /* Serpent subkeys */ | |
7 | }; | |
8 | ||
9 | /* Function protoypes */ | |
10 | void serpent_makekey(struct keyInstance *key, int keyLen, | |
11 | uint8_t *keyMaterial); | |
12 | ||
13 | void serpent_encrypt(struct keyInstance *key, uint32_t plaintext[4], | |
14 | uint32_t ciphertext[4]); | |
15 | ||
16 | void serpent_decrypt(struct keyInstance *key, uint32_t ciphertext[4], | |
17 | uint32_t plaintext[4]); | |
18 | ||
19 | #endif /* serpent_h */ |