]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/crypto/aes.h
wolfSSL: Fix altSubjectName handling
[thirdparty/hostap.git] / src / crypto / aes.h
CommitLineData
6fc6879b
JM
1/*
2 * AES functions
3 * Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi>
4 *
0f3d578e
JM
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
6fc6879b
JM
7 */
8
9#ifndef AES_H
10#define AES_H
11
1ba787b9
JM
12#define AES_BLOCK_SIZE 16
13
6fc6879b 14void * aes_encrypt_init(const u8 *key, size_t len);
5f0e165e 15int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
6fc6879b
JM
16void aes_encrypt_deinit(void *ctx);
17void * aes_decrypt_init(const u8 *key, size_t len);
5f0e165e 18int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
6fc6879b
JM
19void aes_decrypt_deinit(void *ctx);
20
21#endif /* AES_H */