1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-10 18:24:11 +01:00
LibrePilot/flight/PipXtreme/inc/aes.h
pip df45cb7be8 PipX modem full source code moved into public SVN.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2394 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-13 08:45:18 +00:00

20 lines
555 B
C

#ifndef _AES_H_
#define _AES_H_
#include "stm32f10x.h"
#define N_ROW 4
#define N_COL 4
#define N_BLOCK (N_ROW * N_COL)
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