aversive_10-03-12/modules/crypto/aes/aes.h File Reference

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


Define Documentation

#define AES_BLOCK_SIZE   16

Definition at line 67 of file aes.h.

#define AES_DECRYPT   0

Definition at line 62 of file aes.h.

#define AES_ENCRYPT   1

Definition at line 61 of file aes.h.

#define AES_MAXNR   14

Definition at line 66 of file aes.h.


Typedef Documentation

typedef struct aes_key_st AES_KEY

Definition at line 79 of file aes.h.


Function Documentation

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 
)

Definition at line 105 of file aes_ctr.c.

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


Generated on Fri Mar 12 06:32:05 2010 for AVR by  doxygen 1.5.6