Main Page | Data Structures | File List | Data Fields | Globals

aes_core.c File Reference

AES encryption routine. More...

#include <sys/mman.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <mysql/mysql.h>
#include "ss-util.h"
#include <assert.h>

Go to the source code of this file.

Functions

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)


Detailed Description

AES encryption routine.

Author:
OpenSSL Project, modified by Giordano Scuderi
Date:
2007

Definition in file aes_core.c.


Function Documentation

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

Decrypt a single block. in and out can overlap AES_ctr encryption doesn't use this function!

Author:
OpenSSL Authors
See also:
AES_encrypt()
Parameters:
in is the encrypted input buffer
out is the output decrypted buffer
key is the AES_KEY struct

Definition at line 1006 of file aes_core.c.

References AES_KEY, GETU32, PUTU32, aes_key_st::rd_key, aes_key_st::rounds, and u32.

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

Encrypt a single block. in and out can overlap.

Author:
OpenSSL Authors
See also:
AES_decrypt()
Parameters:
in is the input buffer
out is the output encrypted buffer
key is the AES_KEY struct

Definition at line 815 of file aes_core.c.

References AES_KEY, GETU32, PUTU32, aes_key_st::rd_key, aes_key_st::rounds, and u32.

Referenced by securestorage_AES_ctr(), and securestorage_lseek().

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 762 of file aes_core.c.

References AES_KEY, AES_set_encrypt_key(), aes_key_st::rd_key, aes_key_st::rounds, and u32.

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 661 of file aes_core.c.

References AES_KEY, GETU32, aes_key_st::rd_key, aes_key_st::rounds, and u32.

Referenced by AES_set_decrypt_key(), lcg_scp(), lcg_scr(), and securestorage_open_extended().


Generated on Wed May 30 09:56:31 2007 for Secure Storage Service by doxygen 1.3.5