blob: 7e97f6183d4cfe54803f3ad499c9f9685735c59e [file] [log] [blame]
Harald Welte781bd5d2011-12-06 22:23:52 +01001/*
2 * AES functions
3 * Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * Alternatively, this software may be distributed under the terms of BSD
10 * license.
11 *
12 * See README and COPYING for more details.
13 */
14
Sylvain Munaut12ba7782014-06-16 10:13:40 +020015#pragma once
Harald Welte781bd5d2011-12-06 22:23:52 +010016
17#define AES_BLOCK_SIZE 16
18
19void * aes_encrypt_init(const u8 *key, size_t len);
20void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
21void aes_encrypt_deinit(void *ctx);
22void * aes_decrypt_init(const u8 *key, size_t len);
23void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
24void aes_decrypt_deinit(void *ctx);