23 #ifndef LW_INTERNAL_SLISCP_LIGHT_M_H
24 #define LW_INTERNAL_SLISCP_LIGHT_M_H
40 #define be_load_word24(ptr) \
41 ((((uint32_t)((ptr)[0])) << 16) | \
42 (((uint32_t)((ptr)[1])) << 8) | \
43 ((uint32_t)((ptr)[2])))
46 #define be_store_word24(ptr, x) \
49 (ptr)[0] = (uint8_t)(_x >> 16); \
50 (ptr)[1] = (uint8_t)(_x >> 8); \
51 (ptr)[2] = (uint8_t)_x; \
void sliscp_light320_mask(mask_uint32_t output[10], const unsigned char input[40])
Converts an unmasked sLiSCP-light-320 state into a masked state.
Definition: internal-sliscp-light-m.c:419
void sliscp_light192_mask(mask_uint32_t output[8], const unsigned char input[24])
Converts an unmasked sLiSCP-light-192 state into a masked state.
Definition: internal-sliscp-light-m.c:259
void sliscp_light256_unmask(unsigned char output[32], const mask_uint32_t input[8])
Converts a masked sLiSCP-light-256 state into an unmasked state.
Definition: internal-sliscp-light-m.c:347
void sliscp_light320_unmask(unsigned char output[40], const mask_uint32_t input[10])
Converts a masked sLiSCP-light-320 state into an unmasked state.
Definition: internal-sliscp-light-m.c:434
void sliscp_light192_permute_masked(mask_uint32_t block[8])
Performs the masked sLiSCP-light permutation on a 192-bit block.
Definition: internal-sliscp-light-m.c:197
void sliscp_light192_unmask(unsigned char output[24], const mask_uint32_t input[8])
Converts a masked sLiSCP-light-192 state into an unmasked state.
Definition: internal-sliscp-light-m.c:273
Utilities that help to implement masked ciphers.
Masked 32-bit word with four shares.
Definition: internal-masking.h:152
void sliscp_light192_reduce_masked(mask_uint32_t block[8])
Reduces masked 32-bit words into 24-bit words for sLiSCP-light-192.
Definition: internal-sliscp-light-m.c:246
void sliscp_light320_permute_masked(mask_uint32_t block[10])
Performs the masked sLiSCP-light permutation on a 320-bit block.
Definition: internal-sliscp-light-m.c:359
void sliscp_light256_mask(mask_uint32_t output[8], const unsigned char input[32])
Converts an unmasked sLiSCP-light-256 state into a masked state.
Definition: internal-sliscp-light-m.c:334
void sliscp_light256_permute_masked(mask_uint32_t block[8], unsigned rounds)
Performs the masked sLiSCP-light permutation on a 256-bit block.
Definition: internal-sliscp-light-m.c:285