ta/wallet_ta.c
/** Calculate RIPEMD-160 hash of a message. The result is returned in #h.
  * \param message The message to calculate the hash of. This must be a byte
  *                array of the size specified by length.
  * \param length The length (in bytes) of the message.
  */
Calculate RIPEMD-160 hash of a message. The result is returned in #h.
\param message The message to calculate the hash of. This must be a byte
array of the size specified by length.
\param length The length (in bytes) of the message.
Calculate RIPEMD - 160 hash of a message . The result is returned in #h . \ param message The message to calculate the hash of . This must be a byte array of the size specified by length . \ param length The length ( in bytes ) of the message .
static void ripemd_160_internal(uint8_t *message, uint32_t length, uint32_t *h)
{
	uint32_t i;
	HashState hs;
	ripemd_160_begin_internal(&hs);
	for (i = 0; i < length; i++)
		ripemd_160_write_byte_internal(&hs, message[i]);
	ripemd_160_finish_internal(&hs);
	TEE_MemMove((uint32_t*)h, (uint32_t*)(hs.h), (uint32_t)20);
}
static void ripemd_160_internal ( uint8_t * message , uint32_t length , uint32_t * h ) { uint32_t i ; HashState hs ; ripemd_160_begin_internal ( & hs ) ; for ( i = 0 ; i < length ; i ++ ) ripemd_160_write_byte_internal ( & hs , message [ i ] ) ; ripemd_160_finish_internal ( & hs ) ; TEE_MemMove ( ( uint32_t * ) h , ( uint32_t * ) ( hs . h ) , ( uint32_t ) 20 ) ; }
Calculate RIPEMD-160 hash of a message.
Calculate RIPEMD - 160 hash of a message .