Go to the source code of this file.
Data Structures | |
struct | aes_context |
AES context structure. More... | |
Functions | |
void | aes_set_key (aes_context *ctx, unsigned char *key, int keysize) |
AES key schedule. | |
void | aes_encrypt (aes_context *ctx, unsigned char input[16], unsigned char output[16]) |
AES block encryption (ECB mode). | |
void | aes_decrypt (aes_context *ctx, unsigned char input[16], unsigned char output[16]) |
AES block decryption (ECB mode). | |
void | aes_cbc_encrypt (aes_context *ctx, unsigned char iv[16], unsigned char *input, unsigned char *output, int len) |
AES-CBC buffer encryption. | |
void | aes_cbc_decrypt (aes_context *ctx, unsigned char iv[16], unsigned char *input, unsigned char *output, int len) |
AES-CBC buffer decryption. | |
int | aes_self_test (int verbose) |
Checkup routine. |
Definition in file aes.h.
void aes_cbc_decrypt | ( | aes_context * | ctx, | |
unsigned char | iv[16], | |||
unsigned char * | input, | |||
unsigned char * | output, | |||
int | len | |||
) |
AES-CBC buffer decryption.
ctx | AES context | |
iv | initialization vector (modified after use) | |
input | buffer holding the ciphertext | |
output | buffer holding the plaintext | |
len | length of the data to be decrypted |
Definition at line 822 of file aes.c.
Referenced by ssl_decrypt_buf().
void aes_cbc_encrypt | ( | aes_context * | ctx, | |
unsigned char | iv[16], | |||
unsigned char * | input, | |||
unsigned char * | output, | |||
int | len | |||
) |
AES-CBC buffer encryption.
ctx | AES context | |
iv | initialization vector (modified after use) | |
input | buffer holding the plaintext | |
output | buffer holding the ciphertext | |
len | length of the data to be encrypted |
Definition at line 797 of file aes.c.
Referenced by main(), and ssl_encrypt_buf().
void aes_decrypt | ( | aes_context * | ctx, | |
unsigned char | input[16], | |||
unsigned char | output[16] | |||
) |
void aes_encrypt | ( | aes_context * | ctx, | |
unsigned char | input[16], | |||
unsigned char | output[16] | |||
) |
void aes_set_key | ( | aes_context * | ctx, | |
unsigned char * | key, | |||
int | keysize | |||
) |
AES key schedule.
ctx | AES context to be initialized | |
key | the secret key | |
keysize | must be 128, 192 or 256 |
Referenced by main(), and ssl_derive_keys().