• 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 PERM_SRV_ELF_VERIFY_CMD_H
13 #define PERM_SRV_ELF_VERIFY_CMD_H
14 
15 #include <tee_defines.h>
16 #include "permission_service.h"
17 
18 enum rpmb_status {
19     PERMSRV_RPMB_UNKNOWN = 0,
20     PERMSRV_RPMB_AGENT_REGTISTED,
21     PERMSRV_RPMB_AGENT_NOT_REGISTED,
22     PERMSRV_RPMB_ERR,
23 };
24 
25 TEE_Result perm_srv_elf_verify(const perm_srv_req_msg_t *msg, uint32_t sndr_taskid,
26                                const TEE_UUID *sndr_uuid, perm_srv_reply_msg_t *rsp);
27 #endif
28