blob: 4b99a3e01cf1815b699bfb58ceb48d6eddb7b727 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef _AES_H
#define _AES_H
typedef struct
{
unsigned long int erk[64]; /* encryption round keys */
unsigned long int drk[64]; /* decryption round keys */
int nr; /* number of rounds */
} aes_context;
int aes_set_key(aes_context *ctx, unsigned char *key, int nbits);
void aes_encrypt(aes_context *ctx, unsigned char input[16], unsigned char output[16]);
void aes_decrypt(aes_context *ctx, unsigned char input[16], unsigned char output[16]);
#endif /* aes.h */
|