summaryrefslogtreecommitdiff
path: root/include/u-boot/aes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/u-boot/aes.h')
-rw-r--r--include/u-boot/aes.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/u-boot/aes.h b/include/u-boot/aes.h
index 4fb2cb7502..32281041de 100644
--- a/include/u-boot/aes.h
+++ b/include/u-boot/aes.h
@@ -28,4 +28,17 @@ int image_aes_add_cipher_data(struct image_cipher_info *info, void *keydest)
}
#endif /* IMAGE_ENABLE_ENCRYPT */
+#if IMAGE_ENABLE_DECRYPT
+int image_aes_decrypt(struct image_cipher_info *info,
+ const void *cipher, size_t cipher_len,
+ void **data, size_t *size);
+#else
+int image_aes_decrypt(struct image_cipher_info *info,
+ const void *cipher, size_t cipher_len,
+ void **data, size_t *size)
+{
+ return -ENXIO;
+}
+#endif /* IMAGE_ENABLE_DECRYPT */
+
#endif