![]() |
API参考
|
EAL CMVP header 更多...

类型定义 | |
| 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
| 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. |
| const char * CRYPT_CMVP_GetVersion | ( | CRYPT_SelftestCtx * | ctx | ) |
Get the version of the provider.
| ctx | [IN] The self-test context. |
| The | string pointer of the version of the provider. NULL, if the operation fails. |
| 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_SUCCESS | For other error codes, see crypt_errno.h. |
| void CRYPT_CMVP_SelftestFreeCtx | ( | CRYPT_SelftestCtx * | ctx | ) |
Free the context of the self-test.
| ctx | [IN] The self-test context. |
| 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_SelftestCtx | pointer. NULL, if the operation fails. |