23 #ifndef LWCRYPTO_GIFT_BC_H
24 #define LWCRYPTO_GIFT_BC_H
67 #define GIFT128_KEY_SIZE 16
72 #define GIFT128_BLOCK_SIZE 16
132 const unsigned char *input,
size_t len);
150 const unsigned char *input,
size_t len);
180 const unsigned char *input,
size_t len);
198 const unsigned char *input,
size_t len);
227 const unsigned char *input,
size_t len);
245 const unsigned char *input,
size_t len);
void gift128_setup_key(gift128_key_schedule_t *ks, const unsigned char *k)
Sets up a key schedule for the original version of GIFT-128.
Definition: gift-bc.c:38
void gift128_le_ecb_encrypt(const gift128_key_schedule_t *ks, unsigned char *output, const unsigned char *input, size_t len)
Encrypts a 128-bit block with the little-endian version of GIFT-128.
Definition: gift-bc.c:104
Structure of an expanded GIFT-128 key schedule.
Definition: gift-bc.h:83
void gift128_le_setup_key(gift128_key_schedule_t *ks, const unsigned char *k)
Sets up a key schedule for the little-endian version of GIFT-128.
Definition: gift-bc.c:92
void gift128_ecb_decrypt(const gift128_key_schedule_t *ks, unsigned char *output, const unsigned char *input, size_t len)
Decrypts a 128-bit block with the original version of GIFT-128.
Definition: gift-bc.c:68
void gift128b_setup_key(gift128_key_schedule_t *ks, const unsigned char *k)
Sets up a key schedule for the bit-sliced version of GIFT-128.
Definition: gift-bc.c:152
void gift128_free_schedule(gift128_key_schedule_t *ks)
Frees a GIFT-128 key schedule and destroys any sensitive data.
Definition: gift-bc.c:201
void gift128_ecb_encrypt(const gift128_key_schedule_t *ks, unsigned char *output, const unsigned char *input, size_t len)
Encrypts a 128-bit block with the original version of GIFT-128.
Definition: gift-bc.c:44
void gift128_le_ecb_decrypt(const gift128_key_schedule_t *ks, unsigned char *output, const unsigned char *input, size_t len)
Decrypts a 128-bit block with the little-endian version of GIFT-128.
Definition: gift-bc.c:128
void gift128b_ecb_decrypt(const gift128_key_schedule_t *ks, unsigned char *output, const unsigned char *input, size_t len)
Decrypts a 128-bit block with the bit-sliced version of GIFT-128.
Definition: gift-bc.c:180
size_t gift128_get_parallel_size(void)
Gets the best size to use for parallel encryption and decryption.
Definition: gift-bc.c:32
void gift128b_ecb_encrypt(const gift128_key_schedule_t *ks, unsigned char *output, const unsigned char *input, size_t len)
Encrypts a 128-bit block with the bit-sliced version of GIFT-128.
Definition: gift-bc.c:158
size_t gift128_get_key_schedule_size(void)
Gets the actual size of the GIFT-128 key schedule in the back end.
Definition: gift-bc.c:27