API参考
载入中...
搜索中...
未找到
cmvp_sm.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
16#ifndef CMVP_SM_H
17#define CMVP_SM_H
18
19#include "hitls_build.h"
20#ifdef HITLS_CRYPTO_CMVP_SM
21
22#include <stdint.h>
23#include <stdbool.h>
24#include "crypt_cmvp.h"
25#include "crypt_algid.h"
26#include "crypt_sm_provider.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif /* __cplusplus */
31
32bool CMVP_SmPkeyC2(int32_t algId);
33
34bool CMVP_SmKdfC2(const CRYPT_EAL_KdfC2Data *data);
35
36int32_t CMVP_SmKat(void *libCtx, const char *attrName);
37
38int32_t CMVP_SmCheckIntegrity(void *libCtx, const char *attrName);
39
40bool CMVP_SmPkeyPct(void *ctx, int32_t algId);
41
42int32_t CMVP_SmRandomStartupSelftest(void *libCtx, const char *attrName);
43
44#ifdef __cplusplus
45}
46#endif /* __cplusplus */
47
48#endif /* HITLS_CRYPTO_CMVP_SM */
49#endif /* CMVP_SM_H */
定义 crypt_cmvp.h:67