summaryrefslogtreecommitdiff
path: root/ext/ed25519-amd64-asm/sc25519_from64bytes.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ed25519-amd64-asm/sc25519_from64bytes.c')
-rw-r--r--ext/ed25519-amd64-asm/sc25519_from64bytes.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/ed25519-amd64-asm/sc25519_from64bytes.c b/ext/ed25519-amd64-asm/sc25519_from64bytes.c
new file mode 100644
index 00000000..8e76a1b3
--- /dev/null
+++ b/ext/ed25519-amd64-asm/sc25519_from64bytes.c
@@ -0,0 +1,7 @@
+#include "sc25519.h"
+
+void sc25519_from64bytes(sc25519 *r, const unsigned char x[64])
+{
+ /* assuming little-endian representation of unsigned long long */
+ sc25519_barrett(r, (unsigned long long *)x);
+}