1 /*
2  * Copyright (C) 2023 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,s
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 ECC_ASY_KEY_COMMON_TEST_H
17 #define ECC_ASY_KEY_COMMON_TEST_H
18 
19 #include "result.h"
20 #include "asy_key_params.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 HcfResult ConstructEcc192CommParamsSpec(HcfAsyKeyParamsSpec **spec);
27 HcfResult ConstructEcc224CommParamsSpec(HcfAsyKeyParamsSpec **spec);
28 HcfResult ConstructEcc224PubKeyParamsSpec(HcfAsyKeyParamsSpec **spec);
29 HcfResult ConstructEcc224PriKeyParamsSpec(HcfAsyKeyParamsSpec **spec);
30 HcfResult ConstructEcc224KeyPairParamsSpec(HcfAsyKeyParamsSpec **spec);
31 HcfResult ConstructEcc256CommParamsSpec(HcfAsyKeyParamsSpec **spec);
32 HcfResult ConstructEcc256PubKeyParamsSpec(HcfAsyKeyParamsSpec **spec);
33 HcfResult ConstructEcc256PriKeyParamsSpec(HcfAsyKeyParamsSpec **spec);
34 HcfResult ConstructEcc256KeyPairParamsSpec(HcfAsyKeyParamsSpec **spec);
35 HcfResult ConstructEcc384CommParamsSpec(HcfAsyKeyParamsSpec **spec);
36 HcfResult ConstructEcc384PubKeyParamsSpec(HcfAsyKeyParamsSpec **spec);
37 HcfResult ConstructEcc384PriKeyParamsSpec(HcfAsyKeyParamsSpec **spec);
38 HcfResult ConstructEcc384KeyPairParamsSpec(HcfAsyKeyParamsSpec **spec);
39 HcfResult ConstructEcc521CommParamsSpec(HcfAsyKeyParamsSpec **spec);
40 HcfResult ConstructEcc521PubKeyParamsSpec(HcfAsyKeyParamsSpec **spec);
41 HcfResult ConstructEcc521PriKeyParamsSpec(HcfAsyKeyParamsSpec **spec);
42 HcfResult ConstructEcc521KeyPairParamsSpec(HcfAsyKeyParamsSpec **spec);
43 HcfResult ConstructEcc224ErrCommParamsSpec(HcfAsyKeyParamsSpec **spec);
44 HcfResult ConstructEcc256ErrCommParamsSpec(HcfAsyKeyParamsSpec **spec);
45 HcfResult ConstructEcc384ErrCommParamsSpec(HcfAsyKeyParamsSpec **spec);
46 HcfResult ConstructEcc521ErrCommParamsSpec(HcfAsyKeyParamsSpec **spec);
47 HcfResult ConstructEcc384ErrKeyPairParamsSpec(HcfAsyKeyParamsSpec **spec);
48 HcfResult ConstructEcc521ErrKeyPairParamsSpec(HcfAsyKeyParamsSpec **spec);
49 HcfResult ConstructEcc224ErrPubKeyParamsSpec(HcfAsyKeyParamsSpec **spec);
50 HcfResult ConstructEcc224ErrPriKeyParamsSpec(HcfAsyKeyParamsSpec **spec);
51 
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 #endif