2 #ifndef CIPHER_CONSTANTS_H
3 #define CIPHER_CONSTANTS_H
5 enum mode_t { ECB, CTR, CBC, CFB, OFB };
7 static const uint8_t block_sizes[] = {32, 48, 48, 64, 64, 96, 96, 128, 128, 128};
9 static const uint16_t key_sizes[] = {64, 72, 96, 96, 128, 96, 144, 128, 192, 256};
11 enum cipher_config_t {
25 enum cipher_config_t cipher_cfg;
26 void (*encryptPtr)(const uint8_t, const uint8_t *, const uint8_t *, uint8_t *);
27 void (*decryptPtr)(const uint8_t, const uint8_t *, const uint8_t *, uint8_t *);
31 uint8_t init_vector[16];
33 uint8_t key_schedule[576];