diff options
Diffstat (limited to 'nacl/curvecp/uint64_pack.c')
-rw-r--r-- | nacl/curvecp/uint64_pack.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nacl/curvecp/uint64_pack.c b/nacl/curvecp/uint64_pack.c new file mode 100644 index 00000000..898a80a3 --- /dev/null +++ b/nacl/curvecp/uint64_pack.c | |||
@@ -0,0 +1,13 @@ | |||
1 | #include "uint64_pack.h" | ||
2 | |||
3 | void uint64_pack(unsigned char *y,crypto_uint64 x) | ||
4 | { | ||
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 | *y++ = x; x >>= 8; | ||
13 | } | ||