uint32_unpack.c 238 B

1234567891011
  1. #include "uint32_unpack.h"
  2. crypto_uint32 uint32_unpack(const unsigned char *x)
  3. {
  4. crypto_uint32 result;
  5. result = x[3];
  6. result <<= 8; result |= x[2];
  7. result <<= 8; result |= x[1];
  8. result <<= 8; result |= x[0];
  9. return result;
  10. }