aes.h revision 189251
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
18189251Ssamvoid * aes_encrypt_init(const u8 *key, size_t len);
19189251Ssamvoid aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
20189251Ssamvoid aes_encrypt_deinit(void *ctx);
21189251Ssamvoid * aes_decrypt_init(const u8 *key, size_t len);
22189251Ssamvoid aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
23189251Ssamvoid aes_decrypt_deinit(void *ctx);
24189251Ssam
25189251Ssam#endif /* AES_H */
26