23 #ifndef LW_INTERNAL_SATURNIN_H
24 #define LW_INTERNAL_SATURNIN_H
33 #include "internal-util.h"
42 #define SATURNIN_BLOCK_SIZE 32
47 #define SATURNIN_DOMAIN_10_1 0
52 #define SATURNIN_DOMAIN_10_2 10
57 #define SATURNIN_DOMAIN_10_3 20
62 #define SATURNIN_DOMAIN_10_4 30
67 #define SATURNIN_DOMAIN_10_5 40
72 #define SATURNIN_DOMAIN_10_6 50
77 #define SATURNIN_DOMAIN_16_7 60
82 #define SATURNIN_DOMAIN_16_8 76
116 const unsigned char *input,
unsigned domain);
131 const unsigned char *input,
unsigned domain);
void saturnin_setup_key(saturnin_key_schedule_t *ks, const unsigned char *key)
Sets up a key schedule for Saturnin.
Definition: internal-saturnin.c:353
void saturnin_decrypt_block(const saturnin_key_schedule_t *ks, unsigned char *output, const unsigned char *input, unsigned domain)
Decrypts a 256-bit block with Saturnin.
Definition: internal-saturnin.c:425
void saturnin_encrypt_block(const saturnin_key_schedule_t *ks, unsigned char *output, const unsigned char *input, unsigned domain)
Encrypts a 256-bit block with Saturnin.
Definition: internal-saturnin.c:366
Structure of the key schedule for Saturnin.
Definition: internal-saturnin.h:87