API参考
载入中...
搜索中...
未找到
crypt_sm_provderimpl.h
1
/*
2
* This file is part of the openHiTLS project.
3
*
4
* openHiTLS is licensed under the Mulan PSL v2.
5
* You can use this software according to the terms and conditions of the Mulan PSL v2.
6
* You may obtain a copy of Mulan PSL v2 at:
7
*
8
* http://license.coscl.org.cn/MulanPSL2
9
*
10
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
11
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
12
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
13
* See the Mulan PSL v2 for more details.
14
*/
15
21
22
#ifndef CRYPT_EAL_SM_PROVIDERIMPL_H
23
#define CRYPT_EAL_SM_PROVIDERIMPL_H
24
25
#ifdef HITLS_CRYPTO_CMVP_SM
26
27
#include "crypt_eal_implprovider.h"
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
/* __cplusplus */
32
33
typedef
struct
{
34
int32_t algId;
35
void
*ctx;
36
void
*provCtx;
37
} CRYPT_Sm_Pkey_Ctx;
38
39
40
extern
const
CRYPT_EAL_Func
g_smMdSm3[];
41
42
extern
const
CRYPT_EAL_Func
g_smKdfPBKdf2[];
43
extern
const
CRYPT_EAL_Func
g_smKdfKdfTLS12[];
44
45
extern
const
CRYPT_EAL_Func
g_smKeyMgmtSm2[];
46
47
extern
const
CRYPT_EAL_Func
g_smExchSm2[];
48
49
extern
const
CRYPT_EAL_Func
g_smAsymCipherSm2[];
50
51
extern
const
CRYPT_EAL_Func
g_smSignSm2[];
52
53
extern
const
CRYPT_EAL_Func
g_smMacHmac[];
54
extern
const
CRYPT_EAL_Func
g_smMacCbcMac[];
55
56
extern
const
CRYPT_EAL_Func
g_smRand[];
57
58
extern
const
CRYPT_EAL_Func
g_smCbc[];
59
extern
const
CRYPT_EAL_Func
g_smCfb[];
60
extern
const
CRYPT_EAL_Func
g_smCtr[];
61
extern
const
CRYPT_EAL_Func
g_smEcb[];
62
extern
const
CRYPT_EAL_Func
g_smGcm[];
63
extern
const
CRYPT_EAL_Func
g_smOfb[];
64
extern
const
CRYPT_EAL_Func
g_smXts[];
65
66
extern
const
CRYPT_EAL_Func
g_smSelftest[];
67
68
#ifdef HITLS_CRYPTO_KEY_DECODE_CHAIN
69
extern
const
CRYPT_EAL_Func
g_smEalPrvP8Enc2P8[];
70
extern
const
CRYPT_EAL_Func
g_smEalPem2Der[];
71
extern
const
CRYPT_EAL_Func
g_smEalSm2PrvDer2Key[];
72
extern
const
CRYPT_EAL_Func
g_smEalP8Der2Sm2Key[];
73
extern
const
CRYPT_EAL_Func
g_smEalSubPubKeyDer2Sm2Key[];
74
extern
const
CRYPT_EAL_Func
g_smEalSubPubKeyWithoutSeqDer2Sm2Key[];
75
extern
const
CRYPT_EAL_Func
g_smEalLowKeyObject2PkeyObject[];
76
#endif
// HITLS_CRYPTO_KEY_DECODE_CHAIN
77
78
#ifdef __cplusplus
79
}
80
#endif
/* __cplusplus */
81
82
#endif
/* HITLS_CRYPTO_CMVP_SM */
83
#endif
/* CRYPT_EAL_SM_PROVIDERIMPL_H */
CRYPT_EAL_Func
定义
crypt_types.h:952
crypto
provider
src
cmvp
sm_prov
crypt_sm_provderimpl.h
制作者
1.15.0