Updated through tag hostap_2_5 from git://w1.fi/hostap.git
[mech_eap.git] / libeap / src / crypto / aes_siv.h
1 /*
2  * AES SIV (RFC 5297)
3  * Copyright (c) 2013 Cozybit, Inc.
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8
9 #ifndef AES_SIV_H
10 #define AES_SIV_H
11
12 int aes_siv_encrypt(const u8 *key, const u8 *pw,
13                     size_t pwlen, size_t num_elem,
14                     const u8 *addr[], const size_t *len, u8 *out);
15 int aes_siv_decrypt(const u8 *key, const u8 *iv_crypt, size_t iv_c_len,
16                     size_t num_elem, const u8 *addr[], const size_t *len,
17                     u8 *out);
18
19 #endif /* AES_SIV_H */