Tor 0.4.9.2-alpha-dev
|
Headers for aes.c. More...
Go to the source code of this file.
Macros | |
#define | aes_cipher_free(cipher) FREE_AND_NULL(aes_cnt_cipher_t, aes_cipher_free_, (cipher)) |
Functions | |
aes_cnt_cipher_t * | aes_new_cipher (const uint8_t *key, const uint8_t *iv, int key_bits) |
void | aes_cipher_set_iv_aligned (aes_cnt_cipher_t *cipher_, const uint8_t *iv) |
void | aes_cipher_set_key (aes_cnt_cipher_t *cipher_, const uint8_t *key, int key_bits) |
void | aes_cipher_free_ (aes_cnt_cipher_t *cipher) |
void | aes_crypt_inplace (aes_cnt_cipher_t *cipher, char *data, size_t len) |
Headers for aes.c.
Definition in file aes.h.
#define aes_cipher_free | ( | cipher | ) | FREE_AND_NULL(aes_cnt_cipher_t, aes_cipher_free_, (cipher)) |
void aes_cipher_free_ | ( | aes_cnt_cipher_t * | cipher | ) |
void aes_cipher_set_iv_aligned | ( | aes_cnt_cipher_t * | cipher_, |
const uint8_t * | iv | ||
) |
Change the IV of this stream cipher without changing the key.
Requires that the cipher stream position is at an even multiple of 16 bytes.
Definition at line 105 of file aes_nss.c.
Referenced by cgo_prf_xor_t0().
void aes_cipher_set_key | ( | aes_cnt_cipher_t * | cipher_, |
const uint8_t * | key, | ||
int | key_bits | ||
) |
Changes the key of the cipher; sets the IV to 0.
Definition at line 115 of file aes_nss.c.
Referenced by cgo_prf_set_key().
void aes_crypt_inplace | ( | aes_cnt_cipher_t * | cipher, |
char * | data, | ||
size_t | len | ||
) |
aes_cnt_cipher_t * aes_new_cipher | ( | const uint8_t * | key, |
const uint8_t * | iv, | ||
int | key_bits | ||
) |