Tor 0.4.9.0-alpha-dev
Macros | Typedefs | Functions
aes.h File Reference

Headers for aes.c. More...

#include "lib/cc/torint.h"
#include "lib/malloc/malloc.h"

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))
 

Typedefs

typedef struct aes_cnt_cipher_t aes_cnt_cipher_t
 

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

Headers for aes.c.

Definition in file aes.h.

Macro Definition Documentation

◆ aes_cipher_free

#define aes_cipher_free (   cipher)     FREE_AND_NULL(aes_cnt_cipher_t, aes_cipher_free_, (cipher))

Definition at line 24 of file aes.h.

Typedef Documentation

◆ aes_cnt_cipher_t

typedef struct aes_cnt_cipher_t aes_cnt_cipher_t

Definition at line 19 of file aes.h.

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.