1*5b9c547cSRui Paulo /* 2*5b9c547cSRui Paulo * AES SIV (RFC 5297) 3*5b9c547cSRui Paulo * Copyright (c) 2013 Cozybit, Inc. 4*5b9c547cSRui Paulo * 5*5b9c547cSRui Paulo * This software may be distributed under the terms of the BSD license. 6*5b9c547cSRui Paulo * See README for more details. 7*5b9c547cSRui Paulo */ 8*5b9c547cSRui Paulo 9*5b9c547cSRui Paulo #ifndef AES_SIV_H 10*5b9c547cSRui Paulo #define AES_SIV_H 11*5b9c547cSRui Paulo 12*5b9c547cSRui Paulo int aes_siv_encrypt(const u8 *key, const u8 *pw, 13*5b9c547cSRui Paulo size_t pwlen, size_t num_elem, 14*5b9c547cSRui Paulo const u8 *addr[], const size_t *len, u8 *out); 15*5b9c547cSRui Paulo int aes_siv_decrypt(const u8 *key, const u8 *iv_crypt, size_t iv_c_len, 16*5b9c547cSRui Paulo size_t num_elem, const u8 *addr[], const size_t *len, 17*5b9c547cSRui Paulo u8 *out); 18*5b9c547cSRui Paulo 19*5b9c547cSRui Paulo #endif /* AES_SIV_H */ 20