Tor 0.4.9.0-alpha-dev
|
Use OpenSSL to implement AES_CTR. More...
#include "orconfig.h"
#include "lib/crypt_ops/aes.h"
#include "lib/crypt_ops/crypto_util.h"
#include "lib/log/util_bug.h"
#include "lib/arch/bytes.h"
#include "lib/crypt_ops/compat_openssl.h"
#include <openssl/opensslv.h>
#include "lib/crypt_ops/crypto_openssl_mgt.h"
#include <stdlib.h>
#include <string.h>
#include <openssl/aes.h>
#include <openssl/evp.h>
#include <openssl/engine.h>
#include <openssl/modes.h>
#include "lib/log/log.h"
#include "lib/ctime/di_ops.h"
Go to the source code of this file.
Functions | |
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_crypt_inplace (aes_cnt_cipher_t *cipher_, char *data, size_t len) |
int | evaluate_evp_for_aes (int force_val) |
int | evaluate_ctr_for_aes (void) |
Use OpenSSL to implement AES_CTR.
Definition in file aes_openssl.c.
#define USE_EVP_AES_CTR |
Definition at line 65 of file aes_openssl.c.
void aes_cipher_free_ | ( | aes_cnt_cipher_t * | cipher_ | ) |
Definition at line 114 of file aes_openssl.c.
void aes_crypt_inplace | ( | aes_cnt_cipher_t * | cipher_, |
char * | data, | ||
size_t | len | ||
) |
Definition at line 127 of file aes_openssl.c.
aes_cnt_cipher_t * aes_new_cipher | ( | const uint8_t * | key, |
const uint8_t * | iv, | ||
int | key_bits | ||
) |
Definition at line 100 of file aes_openssl.c.
int evaluate_ctr_for_aes | ( | void | ) |
Definition at line 146 of file aes_openssl.c.
int evaluate_evp_for_aes | ( | int | force_val | ) |
Definition at line 138 of file aes_openssl.c.