4.7.2.2 Crypto_Hash_Ripemd160_Update

crypto_HandlerType_E Crypto_Hash_Ripemd160_Update(
    st_Crypto_Hash_Ripemd160_Ctx *ptr_ripemdCtx_st, 
    uint8_t *ptr_data, 
    uint32_t dataLen
    ); 

Description

This API performs hash calculation for RIPEMD-160 algorithm in multi-steps. Initialize context by calling Crypto_Hash_Ripemd160_Init function before calling this API and after this API call Crypto_Hash_Ripemd160_Final to get hash/digest.

Parameters

No.Argument TypeArgument NameTypeDescription
1st_Crypto_Hash_Ripemd160_Ctx*ptr_ripemdCtx_stInputHash algorithm and crypto handler context
2uint8_t*ptr_dataInputInput data which digest needs to calculate
3uint32_tdataLenInputLength of the input data in number of bytes

Returns

Return TypeDescription
crypto_Hash_Status_EFunction 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.
  • Crypto_Hash_Ripemd160_Init must be called before calling Crypto_Hash_Ripemd160_Update.

Example

Example provided in Crypto_Hash_Ripemd160_Final.