• 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 CRYPTO_DEFAULT_ENGINE_H
13 #define CRYPTO_DEFAULT_ENGINE_H
14 
15 #include <crypto_driver_adaptor.h>
16 
17 #define DX_CRYPTO   0
18 #define EPS_CRYPTO  1
19 #define SOFT_CRYPTO 2
20 #define SEC_CRYPTO  3
21 
22 struct algorithm_engine_t {
23     uint32_t             algorithm;
24     uint32_t             engine;
25 };
26 
27 const struct algorithm_engine_t g_algorithm_engine[] = {
28     { 0,       SOFT_CRYPTO },
29 };
30 const struct algorithm_engine_t g_generate_key_engine[] = {
31     { 0,       SOFT_CRYPTO },
32 };
33 
34 #endif
35