wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
aes.h
Go to the documentation of this file.
1 
5 #ifndef AES_H
6 #define AES_H
7 
8 #define AES_BLOCK_SIZE 16
9 
10 void * aes_encrypt_init(const u8 *key, size_t len);
11 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
12 void aes_encrypt_deinit(void *ctx);
13 void * aes_decrypt_init(const u8 *key, size_t len);
14 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
15 void aes_decrypt_deinit(void *ctx);
16 
17 #endif /* AES_H */
void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain)
Decrypt one AES block.
Definition: aes-internal-dec.c:146
void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt)
Encrypt one AES block.
Definition: aes-internal-enc.c:111
void * aes_encrypt_init(const u8 *key, size_t len)
Initialize AES for encryption.
Definition: aes-internal-enc.c:94
void aes_encrypt_deinit(void *ctx)
Deinitialize AES encryption.
Definition: aes-internal-enc.c:118
void * aes_decrypt_init(const u8 *key, size_t len)
Initialize AES for decryption.
Definition: aes-internal-dec.c:55
void aes_decrypt_deinit(void *ctx)
Deinitialize AES decryption.
Definition: aes-internal-dec.c:153