1189251Ssam/*
2189251Ssam * AES functions
3189251Ssam * Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi>
4189251Ssam *
5189251Ssam * This program is free software; you can redistribute it and/or modify
6189251Ssam * it under the terms of the GNU General Public License version 2 as
7189251Ssam * published by the Free Software Foundation.
8189251Ssam *
9189251Ssam * Alternatively, this software may be distributed under the terms of BSD
10189251Ssam * license.
11189251Ssam *
12189251Ssam * See README and COPYING for more details.
13189251Ssam */
14189251Ssam
15189251Ssam#ifndef AES_H
16189251Ssam#define AES_H
17189251Ssam
18214734Srpaulo#define AES_BLOCK_SIZE 16
19214734Srpaulo
20189251Ssamvoid * aes_encrypt_init(const u8 *key, size_t len);
21189251Ssamvoid aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
22189251Ssamvoid aes_encrypt_deinit(void *ctx);
23189251Ssamvoid * aes_decrypt_init(const u8 *key, size_t len);
24189251Ssamvoid aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
25189251Ssamvoid aes_decrypt_deinit(void *ctx);
26189251Ssam
27189251Ssam#endif /* AES_H */
28