#include <aversive.h>
Go to the source code of this file.
Data Structures | |
struct | aes_key_st |
Defines | |
#define | AES_ENCRYPT 1 |
#define | AES_DECRYPT 0 |
#define | AES_MAXNR 14 |
#define | AES_BLOCK_SIZE 16 |
Typedefs | |
typedef struct aes_key_st | AES_KEY |
Functions | |
const char * | AES_options (void) |
int | AES_set_encrypt_key (const unsigned char *userKey, const int bits, AES_KEY *key) |
int | AES_set_decrypt_key (const unsigned char *userKey, const int bits, AES_KEY *key) |
void | AES_encrypt (const unsigned char *in, unsigned char *out, const AES_KEY *key) |
void | AES_decrypt (const unsigned char *in, unsigned char *out, const AES_KEY *key) |
void | AES_ecb_encrypt (const unsigned char *in, unsigned char *out, const AES_KEY *key, const int enc) |
void | AES_cbc_encrypt (const unsigned char *in, unsigned char *out, const unsigned long length, const AES_KEY *key, unsigned char *ivec, const int enc) |
void | AES_cfb128_encrypt (const unsigned char *in, unsigned char *out, const unsigned long length, const AES_KEY *key, unsigned char *ivec, int *num, const int enc) |
void | AES_ofb128_encrypt (const unsigned char *in, unsigned char *out, const unsigned long length, const AES_KEY *key, unsigned char *ivec, int *num) |
void | AES_ctr128_encrypt (const unsigned char *in, unsigned char *out, const unsigned long length, const AES_KEY *key, unsigned char counter[AES_BLOCK_SIZE], unsigned char ecount_buf[AES_BLOCK_SIZE], unsigned int *num) |
typedef struct aes_key_st AES_KEY |
void AES_cbc_encrypt | ( | const unsigned char * | in, | |
unsigned char * | out, | |||
const unsigned long | length, | |||
const AES_KEY * | key, | |||
unsigned char * | ivec, | |||
const int | enc | |||
) |
void AES_cfb128_encrypt | ( | const unsigned char * | in, | |
unsigned char * | out, | |||
const unsigned long | length, | |||
const AES_KEY * | key, | |||
unsigned char * | ivec, | |||
int * | num, | |||
const int | enc | |||
) |
void AES_ctr128_encrypt | ( | const unsigned char * | in, | |
unsigned char * | out, | |||
const unsigned long | length, | |||
const AES_KEY * | key, | |||
unsigned char | counter[AES_BLOCK_SIZE], | |||
unsigned char | ecount_buf[AES_BLOCK_SIZE], | |||
unsigned int * | num | |||
) |
void AES_decrypt | ( | const unsigned char * | in, | |
unsigned char * | out, | |||
const AES_KEY * | key | |||
) |
Definition at line 677 of file aes_core.c.
References GETU32, PUTU32, aes_key_st::rd_key, ROR_U32_1, ROR_U32_2, ROR_U32_3, and aes_key_st::rounds.
void AES_ecb_encrypt | ( | const unsigned char * | in, | |
unsigned char * | out, | |||
const AES_KEY * | key, | |||
const int | enc | |||
) |
void AES_encrypt | ( | const unsigned char * | in, | |
unsigned char * | out, | |||
const AES_KEY * | key | |||
) |
Definition at line 560 of file aes_core.c.
References GETU32, PUTU32, aes_key_st::rd_key, ROR_U32_1, ROR_U32_2, ROR_U32_3, and aes_key_st::rounds.
Referenced by AES_ctr128_encrypt().
void AES_ofb128_encrypt | ( | const unsigned char * | in, | |
unsigned char * | out, | |||
const unsigned long | length, | |||
const AES_KEY * | key, | |||
unsigned char * | ivec, | |||
int * | num | |||
) |
const char* AES_options | ( | void | ) |
int AES_set_decrypt_key | ( | const unsigned char * | userKey, | |
const int | bits, | |||
AES_KEY * | key | |||
) |
Expand the cipher key into the decryption key schedule.
Definition at line 508 of file aes_core.c.
References AES_set_encrypt_key(), aes_key_st::rd_key, ROR_U32_1, ROR_U32_2, ROR_U32_3, and aes_key_st::rounds.
int AES_set_encrypt_key | ( | const unsigned char * | userKey, | |
const int | bits, | |||
AES_KEY * | key | |||
) |
Expand the cipher key into the encryption key schedule.
Definition at line 407 of file aes_core.c.
References GETU32, aes_key_st::rd_key, and aes_key_st::rounds.
Referenced by AES_set_decrypt_key().