4
* Header for AES Cipher Blobk Chaining Mode.
18
v128_t state; /* cipher chaining state */
19
v128_t previous; /* previous ciphertext block */
20
aes_expanded_key_t expanded_key; /* the cipher key */
24
aes_cbc_set_key(aes_cbc_ctx_t *c,
25
const unsigned char *key);
28
aes_cbc_encrypt(aes_cbc_ctx_t *c,
30
unsigned int *bytes_in_data);
33
aes_cbc_context_init(aes_cbc_ctx_t *c, const uint8_t *key,
34
cipher_direction_t dir);
37
aes_cbc_set_iv(aes_cbc_ctx_t *c, void *iv);
40
aes_cbc_nist_encrypt(aes_cbc_ctx_t *c,
42
unsigned int *bytes_in_data);
45
aes_cbc_nist_decrypt(aes_cbc_ctx_t *c,
47
unsigned int *bytes_in_data);
49
#endif /* AES_CBC_H */