summaryrefslogtreecommitdiff
path: root/nacl/curvecp/uint32_pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'nacl/curvecp/uint32_pack.c')
-rw-r--r--nacl/curvecp/uint32_pack.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/nacl/curvecp/uint32_pack.c b/nacl/curvecp/uint32_pack.c
new file mode 100644
index 00000000..d54fe542
--- /dev/null
+++ b/nacl/curvecp/uint32_pack.c
@@ -0,0 +1,9 @@
1#include "uint32_pack.h"
2
3void uint32_pack(unsigned char *y,crypto_uint32 x)
4{
5 *y++ = x; x >>= 8;
6 *y++ = x; x >>= 8;
7 *y++ = x; x >>= 8;
8 *y++ = x; x >>= 8;
9}