summaryrefslogtreecommitdiff
path: root/nacl/curvecp/uint32_pack.c
blob: d54fe54229bdc64b0fecae8d0065ff67c6098d34 (plain)
1
2
3
4
5
6
7
8
9
#include "uint32_pack.h"

void uint32_pack(unsigned char *y,crypto_uint32 x)
{
  *y++ = x; x >>= 8;
  *y++ = x; x >>= 8;
  *y++ = x; x >>= 8;
  *y++ = x; x >>= 8;
}