blob: 2de59e04efa5f0cfbe16b8054249beadae8922fe [file] [log] [blame]
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001/*
2 * AES functions
3 * Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi>
4 *
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -08005 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07007 */
8
9#ifndef AES_H
10#define AES_H
11
12#define AES_BLOCK_SIZE 16
13
14void * aes_encrypt_init(const u8 *key, size_t len);
15void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
16void aes_encrypt_deinit(void *ctx);
17void * aes_decrypt_init(const u8 *key, size_t len);
18void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
19void aes_decrypt_deinit(void *ctx);
20
21#endif /* AES_H */