2013-04-05 22:46:56 +02:00
|
|
|
#ifndef _AES_H_
|
|
|
|
#define _AES_H_
|
|
|
|
|
2013-05-19 16:37:30 +02:00
|
|
|
#define N_ROW 4
|
|
|
|
#define N_COL 4
|
|
|
|
#define N_BLOCK (N_ROW * N_COL)
|
2013-04-05 22:46:56 +02:00
|
|
|
|
|
|
|
void aes_encrypt_cbc_128(void *data, void *key, void *chain_block);
|
|
|
|
void aes_decrypt_cbc_128(void *data, void *key, void *chain_block);
|
|
|
|
void aes_decrypt_key_128_create(void *enc_key, void *dec_key);
|
|
|
|
|
|
|
|
void aes_encrypt_cbc_256(void *data, void *key, void *chain_block);
|
|
|
|
void aes_decrypt_cbc_256(void *data, void *key, void *chain_block);
|
|
|
|
void aes_decrypt_key_256_create(void *enc_key, void *dec_key);
|
|
|
|
|
|
|
|
#endif
|