Tor 0.4.9.2-alpha-dev
|
Use NSS to implement AES_CTR. More...
#include "orconfig.h"
#include "lib/crypt_ops/aes.h"
#include "lib/crypt_ops/crypto_nss_mgt.h"
#include "lib/crypt_ops/crypto_util.h"
#include "lib/log/util_bug.h"
#include <pk11pub.h>
#include <secerr.h>
Go to the source code of this file.
Data Structures | |
struct | crypto_cipher_t |
Functions | |
static PK11Context * | aes_new_cipher_internal (const uint8_t *key, const uint8_t *iv, int key_bits) |
aes_cnt_cipher_t * | aes_new_cipher (const uint8_t *key, const uint8_t *iv, int key_bits) |
void | aes_cipher_free_ (aes_cnt_cipher_t *cipher) |
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_crypt_inplace (aes_cnt_cipher_t *cipher, char *data_, size_t len_) |
aes_raw_t * | aes_raw_new (const uint8_t *key, int key_bits, bool encrypt) |
void | aes_raw_free_ (aes_raw_t *cipher_) |
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) |
Use NSS to implement AES_CTR.
Definition in file aes_nss.c.
void aes_cipher_free_ | ( | aes_cnt_cipher_t * | cipher | ) |
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_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 | ||
) |
|
static |
void aes_raw_decrypt | ( | const aes_raw_t * | cipher, |
uint8_t * | block | ||
) |
void aes_raw_encrypt | ( | const aes_raw_t * | cipher, |
uint8_t * | block | ||
) |
aes_raw_t * aes_raw_new | ( | const uint8_t * | key, |
int | key_bits, | ||
bool | encrypt | ||
) |