diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-12-06 12:00:49 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-12-06 12:00:49 -0800 |
commit | 18d1772bb472770517dd5f863849d0d08defd71c (patch) | |
tree | c127accc254bbb9880d119052b2209e4bc717731 /ext | |
parent | 5535cad773b69cb9359185deead1a3d5ec7bad8a (diff) | |
download | infinitytier-18d1772bb472770517dd5f863849d0d08defd71c.tar.gz infinitytier-18d1772bb472770517dd5f863849d0d08defd71c.zip |
stuff for speed and stuff (testing)
Diffstat (limited to 'ext')
-rw-r--r-- | ext/ed25519-amd64-asm/sign.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/ed25519-amd64-asm/sign.c b/ext/ed25519-amd64-asm/sign.c index 958e4a14..882ae76f 100644 --- a/ext/ed25519-amd64-asm/sign.c +++ b/ext/ed25519-amd64-asm/sign.c @@ -124,18 +124,15 @@ void get_hram(unsigned char *hram, const unsigned char *sm, const unsigned char extern void ZT_sha512internal(void *digest,const void *data,unsigned int len); -extern void ed25519_amd64_asm_sign(const unsigned char *sk,const unsigned char *pk,const unsigned char *m,const unsigned int mlen,unsigned char *sig) +extern void ed25519_amd64_asm_sign(const unsigned char *sk,const unsigned char *pk,const unsigned char *digest,unsigned char *sig) { unsigned char az[64]; unsigned char nonce[64]; unsigned char hram[64]; sc25519 sck, scs, scsk; ge25519 ger; - unsigned char digest[64]; unsigned int i; - ZT_sha512internal(digest,m,mlen); - ZT_sha512internal(az,sk,32); az[0] &= 248; az[31] &= 127; |