Tor 0.4.9.0-alpha-dev
Functions
aes_nss.c File Reference

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.

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_value)
 
int evaluate_ctr_for_aes (void)
 

Detailed Description

Use NSS to implement AES_CTR.

Definition in file aes_nss.c.

Function Documentation

◆ aes_cipher_free_()

void aes_cipher_free_ ( aes_cnt_cipher_t *  cipher)

Definition at line 72 of file aes_nss.c.

◆ aes_crypt_inplace()

void aes_crypt_inplace ( aes_cnt_cipher_t *  cipher,
char *  data_,
size_t  len_ 
)

Definition at line 80 of file aes_nss.c.

◆ aes_new_cipher()

aes_cnt_cipher_t * aes_new_cipher ( const uint8_t *  key,
const uint8_t *  iv,
int  key_bits 
)

Definition at line 24 of file aes_nss.c.

◆ evaluate_ctr_for_aes()

int evaluate_ctr_for_aes ( void  )

Definition at line 103 of file aes_nss.c.

◆ evaluate_evp_for_aes()

int evaluate_evp_for_aes ( int  force_value)

Definition at line 96 of file aes_nss.c.