1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2019, Softathome
12 #if IMAGE_ENABLE_ENCRYPT
13 int image_aes_encrypt(struct image_cipher_info *info,
14 const unsigned char *data, int size,
15 unsigned char **cipher, int *cipher_len);
16 int image_aes_add_cipher_data(struct image_cipher_info *info, void *keydest);
18 int image_aes_encrypt(struct image_cipher_info *info,
19 const unsigned char *data, int size,
20 unsigned char **cipher, int *cipher_len)
25 int image_aes_add_cipher_data(struct image_cipher_info *info, void *keydest)
29 #endif /* IMAGE_ENABLE_ENCRYPT */
31 #if IMAGE_ENABLE_DECRYPT
32 int image_aes_decrypt(struct image_cipher_info *info,
33 const void *cipher, size_t cipher_len,
34 void **data, size_t *size);
36 int image_aes_decrypt(struct image_cipher_info *info,
37 const void *cipher, size_t cipher_len,
38 void **data, size_t *size)
42 #endif /* IMAGE_ENABLE_DECRYPT */