mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 12:17:49 +02:00
Add tests for EdDSA25519, fix Verifier.
This commit is contained in:
parent
99b2ca860d
commit
eabf434a48
5 changed files with 108 additions and 5 deletions
|
@ -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))
|
||||
|
|
|
@ -33,7 +33,6 @@ int crypto_sign_open(
|
|||
ge_tobytes(rcheck,&R);
|
||||
if (crypto_verify_32(rcheck,rcopy) == 0)
|
||||
return 0;
|
||||
|
||||
|
||||
badsig:
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue