SXHASHALG_SHA1 Macro
C
#define SXHASHALG_SHA1 ((const struct sxhashalg *)(*(uint32_t *)(API_TABLE_BASE_ADDRESS + ATO_SXHASHALG_SHA1)))
Description
Hash algorithm SHA-1 (Secure Hash Algorithm 1)
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.
SX_HASH_CREATE_SHA1
C
typedef int (*FUNC_SX_HASH_CREATE_SHA1)(struct sxhash *c, size_t csz); #define SX_HASH_CREATE_SHA1 ((FUNC_SX_HASH_CREATE_SHA1)(*(uint32_t *)(API_TABLE_BASE_ADDRESS + ATO_SX_HASH_CREATE_SHA1)))
Description
Prepares a SHA1 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 - SHA1 digest size is 20 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