Cryptographic message hashing SM3.

SXSYMCRYPT_SM3_API_FILE Macro

C

#define SXSYMCRYPT_SM3_API_FILE

@file

@copyright Copyright (c) 2019-2020 Silex Insight. All Rights reserved.

GM/T 0004-2012: SM3 cryptographic hash algorithm */

extern const struct sxhashalg SXHASHALG_SM3;

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.

Parameters

c hash operation context

Parameters

csz size of the hash operation context @return ::SX_OK @return ::SX_ERR_INCOMPATIBLE_HW @return ::SX_ERR_RETRY | Param | Description | |:----- |:----------- |

| @remark | SM3 digest size is 32 bytes int SX_HASH_CREATE_SM3(struct sxhash c, size_t csz);