#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) |
Definition in file aes_core.c.
|
Decrypt a single block. in and out can overlap AES_ctr encryption doesn't use this function!
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. |
|
Encrypt a single block. in and out can overlap.
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(). |
|
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. |
|
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(). |