mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-05 16:32:34 +00:00
Add files required for DPP feature from upstream. These file expose the functionality to create DPP packets. Ported crypto layer from openssl to mbedtls. Interfacing to use these API will be added in seperate commit
22 lines
565 B
C
22 lines
565 B
C
/*
|
|
* AES SIV (RFC 5297)
|
|
* Copyright (c) 2013 Cozybit, Inc.
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#ifndef AES_SIV_H
|
|
#define AES_SIV_H
|
|
|
|
int aes_siv_encrypt(const u8 *key, size_t key_len,
|
|
const u8 *pw, size_t pwlen,
|
|
size_t num_elem, const u8 *addr[], const size_t *len,
|
|
u8 *out);
|
|
int aes_siv_decrypt(const u8 *key, size_t key_len,
|
|
const u8 *iv_crypt, size_t iv_c_len,
|
|
size_t num_elem, const u8 *addr[], const size_t *len,
|
|
u8 *out);
|
|
|
|
#endif /* AES_SIV_H */
|