diff options
Diffstat (limited to 'ext/ed25519-amd64-asm/sc25519_to32bytes.c')
-rw-r--r-- | ext/ed25519-amd64-asm/sc25519_to32bytes.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/ed25519-amd64-asm/sc25519_to32bytes.c b/ext/ed25519-amd64-asm/sc25519_to32bytes.c new file mode 100644 index 00000000..eddb235d --- /dev/null +++ b/ext/ed25519-amd64-asm/sc25519_to32bytes.c @@ -0,0 +1,8 @@ +#include "sc25519.h" + +void sc25519_to32bytes(unsigned char r[32], const sc25519 *x) +{ + /* assuming little-endian */ + int i; + for(i=0;i<32;i++) r[i] = i[(unsigned char *)x->v]; +} |