• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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, size_t key_len,
13 		    const u8 *pw, size_t pwlen,
14 		    size_t num_elem, const u8 *addr[], const size_t *len,
15 		    u8 *out);
16 int aes_siv_decrypt(const u8 *key, size_t key_len,
17 		    const u8 *iv_crypt, size_t iv_c_len,
18 		    size_t num_elem, const u8 *addr[], const size_t *len,
19 		    u8 *out);
20 
21 #endif /* AES_SIV_H */
22