ta/wallet_ta.c
/**
  * Swap endian representation of a 256 bit integer. It is to be used
  * internally (only by the functions of the TA itself).
  * \param buffer An array of 32 bytes representing the integer to change.
  */
Swap endian representation of a 256 bit integer. It is to be used
internally (only by the functions of the TA itself).
\param buffer An array of 32 bytes representing the integer to change.
Swap endian representation of a 256 bit integer . It is to be used internally ( only by the functions of the TA itself ) . \ param buffer An array of 32 bytes representing the integer to change .
static void swap_endian256_internal(BigNum256 buffer)
{
	uint8_t i;
	uint8_t temp;
	for (i = 0; i < 16; i++)
	{
		temp = buffer[i];
		buffer[i] = buffer[31 - i];
		buffer[31 - i] = temp;
	}
}
static void swap_endian256_internal ( BigNum256 buffer ) { uint8_t i ; uint8_t temp ; for ( i = 0 ; i < 16 ; i ++ ) { temp = buffer [ i ] ; buffer [ i ] = buffer [ 31 - i ] ; buffer [ 31 - i ] = temp ; } }
Swap endian representation of a 256 bit integer.
Swap endian representation of a 256 bit integer .