00001 /*00002 * AES functions00003 * Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi>00004 *00005 * This program is free software; you can redistribute it and/or modify00006 * it under the terms of the GNU General Public License version 2 as00007 * published by the Free Software Foundation.00008 *00009 * Alternatively, this software may be distributed under the terms of BSD00010 * license.00011 *00012 * See README and COPYING for more details.00013 */00014
00015 #ifndef AES_H00016 #define AES_H00017
00018#define AES_BLOCK_SIZE 1600019
00020 void * aes_encrypt_init(constu8 *key, size_t len);
00021 voidaes_encrypt(void *ctx, constu8 *plain, u8 *crypt);
00022 voidaes_encrypt_deinit(void *ctx);
00023 void * aes_decrypt_init(constu8 *key, size_t len);
00024 voidaes_decrypt(void *ctx, constu8 *crypt, u8 *plain);
00025 voidaes_decrypt_deinit(void *ctx);
00026
00027 #endif /* AES_H */