xref: /freebsd-src/contrib/wpa/src/crypto/aes_siv.h (revision 67350cb56a69468c118bd4ccf6e361b7ebfa9eb4)
15b9c547cSRui Paulo /*
25b9c547cSRui Paulo  * AES SIV (RFC 5297)
35b9c547cSRui Paulo  * Copyright (c) 2013 Cozybit, Inc.
45b9c547cSRui Paulo  *
55b9c547cSRui Paulo  * This software may be distributed under the terms of the BSD license.
65b9c547cSRui Paulo  * See README for more details.
75b9c547cSRui Paulo  */
85b9c547cSRui Paulo 
95b9c547cSRui Paulo #ifndef AES_SIV_H
105b9c547cSRui Paulo #define AES_SIV_H
115b9c547cSRui Paulo 
12*85732ac8SCy Schubert int aes_siv_encrypt(const u8 *key, size_t key_len,
13*85732ac8SCy Schubert 		    const u8 *pw, size_t pwlen,
14*85732ac8SCy Schubert 		    size_t num_elem, const u8 *addr[], const size_t *len,
15*85732ac8SCy Schubert 		    u8 *out);
16*85732ac8SCy Schubert int aes_siv_decrypt(const u8 *key, size_t key_len,
17*85732ac8SCy Schubert 		    const u8 *iv_crypt, size_t iv_c_len,
185b9c547cSRui Paulo 		    size_t num_elem, const u8 *addr[], const size_t *len,
195b9c547cSRui Paulo 		    u8 *out);
205b9c547cSRui Paulo 
215b9c547cSRui Paulo #endif /* AES_SIV_H */
22