cipher.h (956B)
1 /* 2 Implementation of the Lilliput-AE tweakable block cipher. 3 4 Authors, hereby denoted as "the implementer": 5 Kévin Le Gouguec, 6 2019. 7 8 For more information, feedback or questions, refer to our website: 9 https://paclido.fr/lilliput-ae 10 11 To the extent possible under law, the implementer has waived all copyright 12 and related or neighboring rights to the source code in this file. 13 http://creativecommons.org/publicdomain/zero/1.0/ 14 15 --- 16 17 This file provides the interface for Lilliput-TBC. 18 */ 19 20 #ifndef CIPHER_H 21 #define CIPHER_H 22 23 #include <stdint.h> 24 25 #include "constants.h" 26 27 28 void lilliput_tbc_encrypt( 29 const uint8_t key[KEY_BYTES], 30 const uint8_t tweak[TWEAK_BYTES], 31 const uint8_t message[BLOCK_BYTES], 32 uint8_t ciphertext[BLOCK_BYTES] 33 ); 34 35 void lilliput_tbc_decrypt( 36 const uint8_t key[KEY_BYTES], 37 const uint8_t tweak[TWEAK_BYTES], 38 const uint8_t ciphertext[BLOCK_BYTES], 39 uint8_t message[BLOCK_BYTES] 40 ); 41 42 43 #endif /* CIPHER_H */