src/salsa20.cc
uint32_t littleendian(std::vector<uint8_t> b) {
  assert(b.size() == 4);

  uint32_t x = 0;

  for (size_t i = 0; i < 4; ++i) {
    x = x | (b.at(i) << (8 * i));
  }

  return x;
}
// Turns 4 bytes into a little endian 32-bit uint
Turns 4 bytes into a little endian 32-bit uint
Turns 4 bytes into a little endian 32 - bit uint
uint32_t littleendian(std::vector<uint8_t> b) {
  assert(b.size() == 4);
  uint32_t x = 0;
  for (size_t i = 0; i < 4; ++i) {
    x = x | (b.at(i) << (8 * i));
  }
  return x;
}
uint32_t littleendian ( std :: vector < uint8_t > b ) { assert ( b . size ( ) == 4 ) ; uint32_t x = 0 ; for ( size_t i = 0 ; i < 4 ; ++ i ) { x = x | ( b . at ( i ) << ( 8 * i ) ) ; } return x ; }
Turns 4 bytes into a little endian 32-bit uint
Turns 4 bytes into a little endian 32 - bit uint