API参考
载入中...
搜索中...
未找到
Crypt_eal_cmvp

EAL CMVP header 更多...

Crypt_eal_cmvp 的协作图:

类型定义

typedef void(* CRYPT_EAL_CMVP_LogFunc) (CRYPT_EVENT_TYPE oper, CRYPT_ALGO_TYPE type, int32_t id, int32_t err)
 Log function for provider.

枚举

enum  CRYPT_CMVP_SELFTEST_TYPE { CRYPT_CMVP_INTEGRITY_TEST = 0 , CRYPT_CMVP_KAT_TEST , CRYPT_CMVP_RANDOMNESS_TEST , CRYPT_CMVP_MAX }
 The type of the self-test. 更多...

函数

CRYPT_SelftestCtx * CRYPT_CMVP_SelftestNewCtx (CRYPT_EAL_LibCtx *libCtx, const char *attrName)
 Create a new context for self-test.
const char * CRYPT_CMVP_GetVersion (CRYPT_SelftestCtx *ctx)
 Get the version of the provider.
int32_t CRYPT_CMVP_Selftest (CRYPT_SelftestCtx *ctx, const BSL_Param *param)
 Run the self-test.
void CRYPT_CMVP_SelftestFreeCtx (CRYPT_SelftestCtx *ctx)
 Free the context of the self-test.

详细描述

EAL CMVP header

类型定义说明

◆ CRYPT_EAL_CMVP_LogFunc

typedef void(* CRYPT_EAL_CMVP_LogFunc) (CRYPT_EVENT_TYPE oper, CRYPT_ALGO_TYPE type, int32_t id, int32_t err)

Log function for provider.

参数
oper[IN] The operation type.
type[IN] The algorithm type.
id[IN] The algorithm ID.
err[IN] The error code.

枚举类型说明

◆ CRYPT_CMVP_SELFTEST_TYPE

The type of the self-test.

枚举值
CRYPT_CMVP_INTEGRITY_TEST 

Integrity test

CRYPT_CMVP_KAT_TEST 

Known Answer Test

CRYPT_CMVP_RANDOMNESS_TEST 

Randomness test

函数说明

◆ CRYPT_CMVP_GetVersion()

const char * CRYPT_CMVP_GetVersion ( CRYPT_SelftestCtx * ctx)

Get the version of the provider.

参数
ctx[IN] The self-test context.
返回值
Thestring pointer of the version of the provider. NULL, if the operation fails.

◆ CRYPT_CMVP_Selftest()

int32_t CRYPT_CMVP_Selftest ( CRYPT_SelftestCtx * ctx,
const BSL_Param * param )

Run the self-test.

参数
ctx[IN] The self-test context.
param[IN] This is a self-check parameter and must contain CRYPT_CMVP_SELFTEST_TYPE.
返回值
CRYPT_SUCCESSFor other error codes, see crypt_errno.h.

◆ CRYPT_CMVP_SelftestFreeCtx()

void CRYPT_CMVP_SelftestFreeCtx ( CRYPT_SelftestCtx * ctx)

Free the context of the self-test.

参数
ctx[IN] The self-test context.

◆ CRYPT_CMVP_SelftestNewCtx()

CRYPT_SelftestCtx * CRYPT_CMVP_SelftestNewCtx ( CRYPT_EAL_LibCtx * libCtx,
const char * attrName )

Create a new context for self-test.

参数
libCtx[IN] The library context, if NULL, return NULL.
attrName[IN] Specify expected attribute values.
返回值
CRYPT_SelftestCtxpointer. NULL, if the operation fails.