OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
aes.h File Reference
#include <openssl/opensslconf.h>
#include <stddef.h>

Go to the source code of this file.

Classes

struct  aes_key_st
 

Macros

#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)
 
int private_AES_set_encrypt_key (const unsigned char *userKey, const int bits, AES_KEY *key)
 
int private_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, size_t length, const AES_KEY *key, unsigned char *ivec, const int enc)
 
void AES_cfb128_encrypt (const unsigned char *in, unsigned char *out, size_t length, const AES_KEY *key, unsigned char *ivec, int *num, const int enc)
 
void AES_cfb1_encrypt (const unsigned char *in, unsigned char *out, size_t length, const AES_KEY *key, unsigned char *ivec, int *num, const int enc)
 
void AES_cfb8_encrypt (const unsigned char *in, unsigned char *out, size_t length, const AES_KEY *key, unsigned char *ivec, int *num, const int enc)
 
void AES_ofb128_encrypt (const unsigned char *in, unsigned char *out, size_t length, const AES_KEY *key, unsigned char *ivec, int *num)
 
void AES_ctr128_encrypt (const unsigned char *in, unsigned char *out, size_t length, const AES_KEY *key, unsigned char ivec[AES_BLOCK_SIZE], unsigned char ecount_buf[AES_BLOCK_SIZE], unsigned int *num)
 
void AES_ige_encrypt (const unsigned char *in, unsigned char *out, size_t length, const AES_KEY *key, unsigned char *ivec, const int enc)
 
void AES_bi_ige_encrypt (const unsigned char *in, unsigned char *out, size_t length, const AES_KEY *key, const AES_KEY *key2, const unsigned char *ivec, const int enc)
 
int AES_wrap_key (AES_KEY *key, const unsigned char *iv, unsigned char *out, const unsigned char *in, unsigned int inlen)
 
int AES_unwrap_key (AES_KEY *key, const unsigned char *iv, unsigned char *out, const unsigned char *in, unsigned int inlen)
 

Macro Definition Documentation

#define AES_BLOCK_SIZE   16

Definition at line 69 of file aes.h.

#define AES_DECRYPT   0

Definition at line 64 of file aes.h.

#define AES_ENCRYPT   1

Definition at line 63 of file aes.h.

#define AES_MAXNR   14

Definition at line 68 of file aes.h.

Typedef Documentation

typedef struct aes_key_st AES_KEY

Definition at line 84 of file aes.h.

Function Documentation

void AES_bi_ige_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  length,
const AES_KEY key,
const AES_KEY key2,
const unsigned char *  ivec,
const int  enc 
)

Definition at line 213 of file aes_ige.c.

void AES_cbc_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  length,
const AES_KEY key,
unsigned char *  ivec,
const int  enc 
)

Definition at line 55 of file aes_cbc.c.

void AES_cfb128_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  length,
const AES_KEY key,
unsigned char *  ivec,
int *  num,
const int  enc 
)

Definition at line 60 of file aes_cfb.c.

void AES_cfb1_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  length,
const AES_KEY key,
unsigned char *  ivec,
int *  num,
const int  enc 
)

Definition at line 68 of file aes_cfb.c.

void AES_cfb8_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  length,
const AES_KEY key,
unsigned char *  ivec,
int *  num,
const int  enc 
)

Definition at line 75 of file aes_cfb.c.

void AES_ctr128_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  length,
const AES_KEY key,
unsigned char  ivec[AES_BLOCK_SIZE],
unsigned char  ecount_buf[AES_BLOCK_SIZE],
unsigned int *  num 
)

Definition at line 55 of file aes_ctr.c.

void AES_decrypt ( const unsigned char *  in,
unsigned char *  out,
const AES_KEY key 
)

Definition at line 972 of file aes_core.c.

void AES_ecb_encrypt ( const unsigned char *  in,
unsigned char *  out,
const AES_KEY key,
const int  enc 
)

Definition at line 62 of file aes_ecb.c.

void AES_encrypt ( const unsigned char *  in,
unsigned char *  out,
const AES_KEY key 
)

Definition at line 781 of file aes_core.c.

void AES_ige_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  length,
const AES_KEY key,
unsigned char *  ivec,
const int  enc 
)

Definition at line 79 of file aes_ige.c.

void AES_ofb128_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  length,
const AES_KEY key,
unsigned char *  ivec,
int *  num 
)

Definition at line 55 of file aes_ofb.c.

const char* AES_options ( void  )

Definition at line 59 of file aes_misc.c.

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 78 of file aes_misc.c.

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 69 of file aes_misc.c.

int AES_unwrap_key ( AES_KEY key,
const unsigned char *  iv,
unsigned char *  out,
const unsigned char *  in,
unsigned int  inlen 
)

Definition at line 99 of file aes_wrap.c.

int AES_wrap_key ( AES_KEY key,
const unsigned char *  iv,
unsigned char *  out,
const unsigned char *  in,
unsigned int  inlen 
)

Definition at line 62 of file aes_wrap.c.

int private_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 729 of file aes_core.c.

int private_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 628 of file aes_core.c.