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,
17 void *fit, int node_noffset);
19 int image_aes_encrypt(struct image_cipher_info *info,
20 const unsigned char *data, int size,
21 unsigned char **cipher, int *cipher_len)
26 int image_aes_add_cipher_data(struct image_cipher_info *info, void *keydest,
27 void *fit, int node_noffset)
31 #endif /* IMAGE_ENABLE_ENCRYPT */
33 #if IMAGE_ENABLE_DECRYPT
34 int image_aes_decrypt(struct image_cipher_info *info,
35 const void *cipher, size_t cipher_len,
36 void **data, size_t *size);
38 int image_aes_decrypt(struct image_cipher_info *info,
39 const void *cipher, size_t cipher_len,
40 void **data, size_t *size)
44 #endif /* IMAGE_ENABLE_DECRYPT */