sha256_set_bswap() function
Enable or disable byte swapping of 32-bit values. The SHA256 algorithm expects bytes in big endian order, but the system bus deals with little endian data, so control is provided to convert little endian bus data to big endian internal data. This defaults to true
Syntax
static inline void sha256_set_bswap(bool swap); Arguments
swap
false to disable byte swapping