references/kyber-submission-nist-round2/NIST-PQ-Submission-Kyber-20190330/Reference_Implementation/crypto_kem/kyber768/cbd.c
/*************************************************
* Name:        load32_littleendian
*
* Description: load bytes into a 32-bit integer
*              in little-endian order
*
* Arguments:   - const unsigned char *x: pointer to input byte array
*
* Returns 32-bit unsigned integer loaded from x
**************************************************/
load32_littleendian
Description: load bytes into a 32-bit integer
in little-endian order

- const unsigned char *x: pointer to input byte array

Returns 32-bit unsigned integer loaded from x
load32_littleendian Description : load bytes into a 32 - bit integer in little - endian order - const unsigned char * x : pointer to input byte array Returns 32 - bit unsigned integer loaded from x
static uint32_t load32_littleendian(const unsigned char *x)
{
  uint32_t r;
  r  = (uint32_t)x[0];
  r |= (uint32_t)x[1] << 8;
  r |= (uint32_t)x[2] << 16;
  r |= (uint32_t)x[3] << 24;
  return r;
}
static uint32_t load32_littleendian ( const unsigned char * x ) { uint32_t r ; r = ( uint32_t ) x [ 0 ] ; r |= ( uint32_t ) x [ 1 ] << 8 ; r |= ( uint32_t ) x [ 2 ] << 16 ; r |= ( uint32_t ) x [ 3 ] << 24 ; return r ; }
Name:        load32_littleendian
Description: load bytes into a 32-bit integer
in little-endian order
Name : load32_littleendian Description : load bytes into a 32 - bit integer in little - endian order