1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2019, Linaro Limited
4  */
5 
6 #ifndef TEE_TA_ENC_MANAGER_H
7 #define TEE_TA_ENC_MANAGER_H
8 
9 #include <signed_hdr.h>
10 #include <tee_api_types.h>
11 #include <utee_defines.h>
12 
13 #define TEE_TA_ENC_KEY_SIZE		TEE_SHA256_HASH_SIZE
14 
15 TEE_Result tee_ta_decrypt_init(void **enc_ctx, struct shdr_encrypted_ta *ehdr,
16 			       size_t len);
17 TEE_Result tee_ta_decrypt_update(void *enc_ctx, uint8_t *dst, uint8_t *src,
18 				 size_t len);
19 TEE_Result tee_ta_decrypt_final(void *enc_ctx, struct shdr_encrypted_ta *ehdr,
20 				uint8_t *dst, uint8_t *src, size_t len);
21 
22 #endif
23