1189251Ssam/*
2189251Ssam * AES functions
3189251Ssam * Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi>
4189251Ssam *
5252726Srpaulo * This software may be distributed under the terms of the BSD license.
6252726Srpaulo * See README for more details.
7189251Ssam */
8189251Ssam
9189251Ssam#ifndef AES_H
10189251Ssam#define AES_H
11189251Ssam
12214734Srpaulo#define AES_BLOCK_SIZE 16
13214734Srpaulo
14189251Ssamvoid * aes_encrypt_init(const u8 *key, size_t len);
15189251Ssamvoid aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
16189251Ssamvoid aes_encrypt_deinit(void *ctx);
17189251Ssamvoid * aes_decrypt_init(const u8 *key, size_t len);
18189251Ssamvoid aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
19189251Ssamvoid aes_decrypt_deinit(void *ctx);
20189251Ssam
21189251Ssam#endif /* AES_H */
22