Skip to content

Commit

Permalink
APPS/pkeyutl: remove wrong check for -verifyrecover regarding too lon…
Browse files Browse the repository at this point in the history
…g sign/verify input

Fixed openssl#25898
  • Loading branch information
DDvO committed Nov 7, 2024
1 parent e545264 commit 49adbe2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/pkeyutl.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,7 @@ int pkeyutl_main(int argc, char **argv)

/* Sanity check the input if the input is not raw */
if (!rawin
&& (pkey_op == EVP_PKEY_OP_SIGN || pkey_op == EVP_PKEY_OP_VERIFY
|| pkey_op == EVP_PKEY_OP_VERIFYRECOVER)) {
&& (pkey_op == EVP_PKEY_OP_SIGN || pkey_op == EVP_PKEY_OP_VERIFY)) {
if (buf_inlen > EVP_MAX_MD_SIZE) {
BIO_printf(bio_err,
"Error: The non-raw input data length %d is too long - max supported hashed size is %d\n",
Expand Down

0 comments on commit 49adbe2

Please sign in to comment.