CRM_HASH_CREATE_SM3
C
int CRM_HASH_CREATE_SM3(struct crmhash *c, size_t csz);Description
Prepares a SM3 hash operation context
This function initializes the user allocated object \p c with a new hash operation context and reserves the HW resource. After successful execution of this function, the context \p c can be passed to any of the hashing functions. remark - SM3 digest size is 32 bytes
Parameters
| Param | Description |
|---|---|
| c | Hash operation context |
| csz | size of the hash operation context |
Returns
CRM_OK CRM_ERR_INCOMPATIBLE_HW CRM_ERR_RETRY
