23 #ifndef LW_INTERNAL_PYJAMASK_M_H
24 #define LW_INTERNAL_PYJAMASK_M_H
26 #include "internal-util.h"
41 #define PYJAMASK_MASKED_ROUNDS 14
95 const unsigned char *input);
111 const unsigned char *input);
127 const unsigned char *input);
143 const unsigned char *input);
void pyjamask_masked_96_encrypt(const pyjamask_masked_96_key_schedule_t *ks, unsigned char *output, const unsigned char *input)
Encrypts a 96-bit block with Pyjamask-96 in masked mode.
Definition: internal-pyjamask-m.c:466
void pyjamask_masked_96_setup_key(pyjamask_masked_96_key_schedule_t *ks, const unsigned char *key)
Sets up the key schedule for the masked Pyjamask-96 block cipher.
Definition: internal-pyjamask-m.c:301
void pyjamask_masked_128_decrypt(const pyjamask_masked_128_key_schedule_t *ks, unsigned char *output, const unsigned char *input)
Decrypts a 128-bit block with Pyjamask-128 in masked mode.
Definition: internal-pyjamask-m.c:411
Structure of the key schedule for masked Pyjamask-128.
Definition: internal-pyjamask-m.h:46
Utilities that help to implement masked ciphers.
#define PYJAMASK_MASKED_ROUNDS
Number of rounds in the masked Pyjamask block cipher.
Definition: internal-pyjamask-m.h:41
Masked 32-bit word with four shares.
Definition: internal-masking.h:152
void pyjamask_masked_96_decrypt(const pyjamask_masked_96_key_schedule_t *ks, unsigned char *output, const unsigned char *input)
Decrypts a 96-bit block with Pyjamask-96 in masked mode.
Definition: internal-pyjamask-m.c:515
Structure of the key schedule for masked Pyjamask-96.
Definition: internal-pyjamask-m.h:56
void pyjamask_masked_128_encrypt(const pyjamask_masked_128_key_schedule_t *ks, unsigned char *output, const unsigned char *input)
Encrypts a 128-bit block with Pyjamask-128 in masked mode.
Definition: internal-pyjamask-m.c:357
void pyjamask_masked_128_setup_key(pyjamask_masked_128_key_schedule_t *ks, const unsigned char *key)
Sets up the key schedule for the masked Pyjamask-128 block cipher.