uint64_pack.c 249 B

12345678910111213
  1. #include "uint64_pack.h"
  2. void uint64_pack(unsigned char *y,crypto_uint64 x)
  3. {
  4. *y++ = x; x >>= 8;
  5. *y++ = x; x >>= 8;
  6. *y++ = x; x >>= 8;
  7. *y++ = x; x >>= 8;
  8. *y++ = x; x >>= 8;
  9. *y++ = x; x >>= 8;
  10. *y++ = x; x >>= 8;
  11. *y++ = x; x >>= 8;
  12. }