4.7.2.1 Crypto_Hash_Ripemd160_Init
crypto_Hash_Status_E Crypto_Hash_Ripemd160_Init(
st_Crypto_Hash_Ripemd160_Ctx *ptr_ripemdCtx_st,
crypto_HandlerType_E ripedmd160Handler_en,
uint32_t ripemdSessionId
);
Description
This API is used to initiate context for RIPEMD-160 algorithm.
Parameters
No. | Argument Type | Argument Name | Type | Description |
---|---|---|---|---|
1 | st_Crypto_Hash_Ripemd160_Ctx* | ptr_ripemdCtx_st | Output | Hash algorithm and crypto handler context |
2 | crypto_HandlerType_E | ripemdHandlerType_en | Input | Input to select the crypto engine i.e., SW library or HW crypto |
3 | uint32_t | ripemdSessionId | Input | It defines the session ID, must be more than zero |
Returns
Return Type | Description |
---|---|
crypto_Hash_Status_E | Function returns the status of the API. |
Prerequisites
- To use the HW handler, the algorithm must be enabled in Crypto v4 in MPLAB® Code Configurator.
- To use the SW handler, the algorithm must be enabled in wolfCrypt, and linked to Crypto V4 in MPLAB® Code Configurator.
Example
Example provided in Crypto_Hash_Ripemd160_Final.