#define SXSYMCRYPT_SHA1_API_FILE
@file
@copyright Copyright (c) 2019-2020 Silex Insight. All Rights reserved.
#define SXHASHALG_SHA1 ((const struct sxhashalg )((uint32_t )(API_TABLE_BASE_ADDRESS + ATO_SXHASHALG_SHA1)))
Deprecated algorithm. NIST formally deprecated use of SHA-1 in 2011 and disallowed its use for digital signatures in 2013. SHA-3 or SHA-2 are recommended instead.
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.
c hash operation context
csz size of the hash operation context @return ::SX_OK @return ::SX_ERR_INCOMPATIBLE_HW @return ::SX_ERR_RETRY | Param | Description | |:----- |:----------- |
| @remark | SHA1 digest size is 20 bytes