23 #ifndef LW_INTERNAL_GIFT128_M_H
24 #define LW_INTERNAL_GIFT128_M_H
41 #define GIFT128_MASKED_BLOCK_SIZE 16
47 #if GIFT128_VARIANT == GIFT128_VARIANT_TINY
48 #define GIFT128_MASKED_ROUND_KEYS 4
49 #elif GIFT128_VARIANT == GIFT128_VARIANT_SMALL
50 #define GIFT128_MASKED_ROUND_KEYS 20
52 #define GIFT128_MASKED_ROUND_KEYS 80
void gift128b_decrypt_preloaded_masked(const gift128b_masked_key_schedule_t *ks, mask_uint32_t output[4], const mask_uint32_t input[4])
Decrypts a block with masked GIFT-128 (bit-sliced and pre-loaded).
Definition: internal-gift128-m.c:872
#define GIFT128_MASKED_ROUND_KEYS
Number of round keys for the GIFT-128 key schedule.
Definition: internal-gift128-m.h:52
void gift128b_init_masked(gift128b_masked_key_schedule_t *ks, const unsigned char *key)
Initializes the key schedule for masked GIFT-128 (bit-sliced).
Definition: internal-gift128-m.c:327
Utilities that help to implement masked ciphers.
Masked 32-bit word with four shares.
Definition: internal-masking.h:152
Configures the variant of GIFT-128 to use.
Structure of the key schedule for masked GIFT-128 (bit-sliced).
Definition: internal-gift128-m.h:58
void gift128b_encrypt_preloaded_masked(const gift128b_masked_key_schedule_t *ks, mask_uint32_t output[4], const mask_uint32_t input[4])
Encrypts a block with masked GIFT-128 (bit-sliced and pre-loaded).
Definition: internal-gift128-m.c:780