Skip to content

Commit

Permalink
Partially revert "ed25519: Fix segfault on verify"
Browse files Browse the repository at this point in the history
This partially reverts commit 87fbc59.

# Conflicts:
#	tests/ed25519_test.c
  • Loading branch information
sjaeckel committed Aug 16, 2022
1 parent 2c5649f commit 45f4f60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pk/ec25519/tweetnacl.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ int tweetnacl_crypto_sign_open(int *stat, u8 *m,u64 *mlen,const u8 *sm,u64 smlen

*stat = 0;
if (*mlen < smlen) return CRYPT_BUFFER_OVERFLOW;
*mlen = -1;
if (smlen < 64) return CRYPT_INVALID_ARG;

if (unpackneg(q,pk)) return CRYPT_ERROR;
Expand Down

0 comments on commit 45f4f60

Please sign in to comment.