uint16_unpack.c 174 B

123456789
  1. #include "uint16_unpack.h"
  2. crypto_uint16 uint16_unpack(const unsigned char *x)
  3. {
  4. crypto_uint16 result;
  5. result = x[1];
  6. result <<= 8; result |= x[0];
  7. return result;
  8. }