4
* Header for AES Integer Counter Mode.
18
v128_t counter; /* holds the counter value */
19
v128_t offset; /* initial offset value */
20
v128_t keystream_buffer; /* buffers bytes of keystream */
21
aes_expanded_key_t expanded_key; /* the cipher key */
22
int bytes_in_buffer; /* number of unused bytes in buffer */
27
aes_icm_context_init(aes_icm_ctx_t *c,
28
const unsigned char *key);
31
aes_icm_set_iv(aes_icm_ctx_t *c, void *iv);
34
aes_icm_encrypt(aes_icm_ctx_t *c,
35
unsigned char *buf, unsigned int *bytes_to_encr);
38
aes_icm_output(aes_icm_ctx_t *c,
39
unsigned char *buf, int bytes_to_output);
42
aes_icm_dealloc(cipher_t *c);
45
aes_icm_encrypt_ismacryp(aes_icm_ctx_t *c,
47
unsigned int *enc_len,
51
aes_icm_alloc_ismacryp(cipher_t **c,
55
#endif /* AES_ICM_H */