Add tests for EdDSA25519, fix Verifier.

This commit is contained in:
EinMByte 2015-08-29 23:21:32 +02:00
parent 99b2ca860d
commit eabf434a48
5 changed files with 108 additions and 5 deletions

View file

@ -1,3 +1,3 @@
#include <cstring>
#define crypto_verify_32(a,b) (std::memcmp((a), (b), 32) == 0)
#define crypto_verify_32(a,b) (!!std::memcmp((a), (b), 32))

View file

@ -33,7 +33,6 @@ int crypto_sign_open(
ge_tobytes(rcheck,&R);
if (crypto_verify_32(rcheck,rcopy) == 0)
return 0;
badsig:
return -1;