diff options
Diffstat (limited to 'ext/ed25519-amd64-asm/sc25519_from_shortsc.c')
-rw-r--r-- | ext/ed25519-amd64-asm/sc25519_from_shortsc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/ed25519-amd64-asm/sc25519_from_shortsc.c b/ext/ed25519-amd64-asm/sc25519_from_shortsc.c new file mode 100644 index 00000000..3b8ff2fb --- /dev/null +++ b/ext/ed25519-amd64-asm/sc25519_from_shortsc.c @@ -0,0 +1,9 @@ +#include "sc25519.h" + +void sc25519_from_shortsc(sc25519 *r, const shortsc25519 *x) +{ + r->v[0] = x->v[0]; + r->v[1] = x->v[1]; + r->v[2] = 0; + r->v[3] = 0; +} |