API参考
载入中...
搜索中...
未找到
cmvp_iso19790.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_ISO19790_H
17#define CMVP_ISO19790_H
18
19#include "hitls_build.h"
20#ifdef HITLS_CRYPTO_CMVP_ISO19790
21
22#include <stdint.h>
23#include <stdbool.h>
24#include "crypt_cmvp.h"
25#include "crypt_algid.h"
26#include "crypt_iso_provderimpl.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif /* __cplusplus */
31
32void CMVP_Iso19790EventProcess(CRYPT_EVENT_TYPE oper, CRYPT_ALGO_TYPE type, int32_t id, int32_t err);
33
34bool CMVP_Iso19790PkeyC2(CRYPT_PKEY_AlgId id, const CRYPT_EAL_PkeyC2Data *data);
35
36bool CMVP_Iso19790MacC2(CRYPT_MAC_AlgId id, uint32_t keyLen);
37
38bool CMVP_Iso19790KdfC2(CRYPT_KDF_AlgId id, const CRYPT_EAL_KdfC2Data *data);
39
40int32_t CMVP_Iso19790Kat(void *libCtx, const char *attrName);
41
42int32_t CMVP_Iso19790CheckIntegrity(void *libCtx, const char *attrName);
43
44bool CMVP_Iso19790PkeyPct(CRYPT_Iso_Pkey_Ctx *ctx);
45
46#ifdef __cplusplus
47}
48#endif /* __cplusplus */
49
50#endif /* HITLS_CRYPTO_CMVP_ISO19790 */
51#endif /* CMVP_ISO19790_H */
CRYPT_MAC_AlgId
定义 crypt_algid.h:91
CRYPT_PKEY_AlgId
定义 crypt_algid.h:121
CRYPT_KDF_AlgId
定义 crypt_algid.h:382
CRYPT_ALGO_TYPE
定义 crypt_types.h:843
CRYPT_EVENT_TYPE
定义 crypt_types.h:810
定义 crypt_cmvp.h:67
定义 crypt_cmvp.h:72