SX_HASH_CREATE_SM3
C
int SX_HASH_CREATE_SM3(struct sxhash *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
SX_OK SX_ERR_INCOMPATIBLE_HW SX_ERR_RETRY
