26 const uint8_t *key,
int key_bits);
28#define aes_cipher_free(cipher) \
29 FREE_AND_NULL(aes_cnt_cipher_t, aes_cipher_free_, (cipher))
33typedef struct aes_raw_t aes_raw_t;
35aes_raw_t *
aes_raw_new(
const uint8_t *key,
int key_bits,
bool encrypt);
37 int key_bits,
bool encrypt);
39#define aes_raw_free(cipher) \
40 FREE_AND_NULL(aes_raw_t, aes_raw_free_, (cipher))
void aes_cipher_set_key(aes_cnt_cipher_t *cipher_, const uint8_t *key, int key_bits)
void aes_cipher_set_iv_aligned(aes_cnt_cipher_t *cipher_, const uint8_t *iv)
void aes_raw_set_key(aes_raw_t **cipher_, const uint8_t *key, int key_bits, bool encrypt)
void aes_raw_encrypt(const aes_raw_t *cipher, uint8_t *block)
void aes_raw_decrypt(const aes_raw_t *cipher, uint8_t *block)
void aes_raw_free_(aes_raw_t *cipher_)
aes_raw_t * aes_raw_new(const uint8_t *key, int key_bits, bool encrypt)
Headers for util_malloc.c.
Macros to implement mocking and selective exposure for the test code.
Integer definitions used throughout Tor.