3.5.1.1 st_Crypto_Hash_Blake_Ctx
Description
This structure is used to define context for BLAKE algorithms variants.
Structure Elements Data Type | Element Name | Description |
---|---|---|
uint32_t | blakeSessionId | It defines the session ID, must be more than zero |
uint32_t | digestLen | Hash length required by user in bytes in multiples of 8 |
crypto_Hash_Algo_E | blakeAlgo_en | Enum to store algorithm variant |
crypto_HandlerType_E | blakeHandler_en | Enum to crypto operation handler i.e., SW, HW |
uint8_t* | ptr_key | (Optional) Key used by BLAKE algorithm else NULL |
uint32_t | keyLen | (Optional) Key length used by BLAKE algorithm else 0 for unkey hashing for BLAKE. Maximum length of key is allowed 64 bytes for BLAKE2b and up to 32 bytes for BLAKE2s. |
uint8_t | arr_blakeDataCtx [400] | Array for the context variable data storage |