• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 Huawei Technologies Co., Ltd.
3  * Licensed under the Mulan PSL v2.
4  * You can use this software according to the terms and conditions of the Mulan PSL v2.
5  * You may obtain a copy of Mulan PSL v2 at:
6  *     http://license.coscl.org.cn/MulanPSL2
7  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
8  * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
9  * PURPOSE.
10  * See the Mulan PSL v2 for more details.
11  */
12 #ifndef TEE_COMM_ELF_VERIFY_H
13 #define TEE_COMM_ELF_VERIFY_H
14 
15 #include "tee_defines.h"
16 #include "tee_elf_verify.h"
17 
18 TEE_Result tee_secure_img_header_check(uint32_t img_version);
19 TEE_Result tee_secure_img_unpack_v2(uint32_t rsa_algo_byte_len,
20     uint32_t ta_hd_len, uint8_t *img_buf, uint32_t img_size, elf_hash_data *hash_data);
21 TEE_Result secure_img_copy_rsp_v2(elf_verify_reply *rep);
22 void free_verify_v2(void);
23 
24 #endif
25 
26