1 /*
2  * Copyright (c) 2022-2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *    http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef HUKS_SERVICE_IPC_INTERFACE_CODE_H
17 #define HUKS_SERVICE_IPC_INTERFACE_CODE_H
18 
19 /* SAID: 3510 */
20 enum HksIpcInterfaceCode {
21     HKS_MSG_BASE = 0,
22 
23     HKS_MSG_GEN_KEY = HKS_MSG_BASE,
24     HKS_MSG_IMPORT_KEY,
25     HKS_MSG_EXPORT_PUBLIC_KEY,
26     HKS_MSG_IMPORT_WRAPPED_KEY,
27     HKS_MSG_DELETE_KEY,
28     HKS_MSG_GET_KEY_PARAMSET,
29     HKS_MSG_KEY_EXIST,
30     HKS_MSG_GENERATE_RANDOM,
31     HKS_MSG_SIGN,
32     HKS_MSG_VERIFY,
33     HKS_MSG_ENCRYPT,
34     HKS_MSG_DECRYPT,
35     HKS_MSG_AGREE_KEY,
36     HKS_MSG_DERIVE_KEY,
37     HKS_MSG_MAC,
38     HKS_MSG_GET_KEY_INFO_LIST,
39     HKS_MSG_ATTEST_KEY,
40     HKS_MSG_GET_CERTIFICATE_CHAIN,
41     HKS_MSG_INIT,
42     HKS_MSG_UPDATE,
43     HKS_MSG_FINISH,
44     HKS_MSG_ABORT,
45     HKS_MSG_CHIPSET_PLATFORM_DECRYPT,
46     HKS_MSG_ATTEST_KEY_ASYNC_REPLY,
47     HKS_MSG_LIST_ALIASES,
48     HKS_MSG_RENAME_KEY_ALIAS,
49     HKS_MSG_CHANGE_STORAGE_LEVEL,
50 
51     /* new cmd type must be added before HKS_MSG_MAX */
52     HKS_MSG_MAX,
53 };
54 
55 #endif /* HUKS_SERVICE_IPC_INTERFACE_CODE_H */
56