xref: /aosp_15_r20/external/wpa_supplicant_8/src/crypto/aes.h (revision 03f9172ca588f91df233974f4258bab95191f931)
1 /*
2  * AES functions
3  * Copyright (c) 2003-2006, Jouni Malinen <[email protected]>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
9 #ifndef AES_H
10 #define AES_H
11 
12 #define AES_BLOCK_SIZE 16
13 
14 void * aes_encrypt_init(const u8 *key, size_t len);
15 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
16 void aes_encrypt_deinit(void *ctx);
17 void * aes_decrypt_init(const u8 *key, size_t len);
18 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
19 void aes_decrypt_deinit(void *ctx);
20 
21 #endif /* AES_H */
22