16d49e1aeSJan Lentfer /*
26d49e1aeSJan Lentfer  * AES functions
36d49e1aeSJan Lentfer  * Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi>
46d49e1aeSJan Lentfer  *
53ff40c12SJohn Marino  * This software may be distributed under the terms of the BSD license.
63ff40c12SJohn Marino  * See README for more details.
76d49e1aeSJan Lentfer  */
86d49e1aeSJan Lentfer 
96d49e1aeSJan Lentfer #ifndef AES_H
106d49e1aeSJan Lentfer #define AES_H
116d49e1aeSJan Lentfer 
123ff40c12SJohn Marino #define AES_BLOCK_SIZE 16
133ff40c12SJohn Marino 
146d49e1aeSJan Lentfer void * aes_encrypt_init(const u8 *key, size_t len);
15*a1157835SDaniel Fojt int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
166d49e1aeSJan Lentfer void aes_encrypt_deinit(void *ctx);
176d49e1aeSJan Lentfer void * aes_decrypt_init(const u8 *key, size_t len);
18*a1157835SDaniel Fojt int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
196d49e1aeSJan Lentfer void aes_decrypt_deinit(void *ctx);
206d49e1aeSJan Lentfer 
216d49e1aeSJan Lentfer #endif /* AES_H */
22