NetSim Source Code Help
Loading...
Searching...
No Matches
aes.h
Go to the documentation of this file.
1#ifndef _AES_H
2#define _AES_H
3
4#ifndef uint8
5#define uint8 unsigned char
6#endif
7
8#ifndef uint32
9#define uint32 unsigned long int
10#endif
11
12typedef struct
13{
14 uint32 erk[64]; /* encryption round keys */
15 uint32 drk[64]; /* decryption round keys */
16 int nr; /* number of rounds */
17}
19
20int aes_set_key( aes_context *ctx, uint8 *key, int nbits );
21void aes_encrypt( aes_context *ctx, uint8 input[16], uint8 output[16] );
22void aes_decrypt( aes_context *ctx, uint8 input[16], uint8 output[16] );
23
24#endif /* aes.h */
#define uint8
Definition: aes.h:5
void aes_decrypt(aes_context *ctx, uint8 input[16], uint8 output[16])
Definition: aes.c:678
#define uint32
Definition: aes.h:9
int aes_set_key(aes_context *ctx, uint8 *key, int nbits)
Definition: aes.c:437
void aes_encrypt(aes_context *ctx, uint8 input[16], uint8 output[16])
Definition: aes.c:588
int nr
Definition: aes.h:16