mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-04-29 19:24:37 +00:00
Fix pkeyutl -verifyrecover
When performing a pkeyutl -verifyrecover operation the input file is not a hash - it is the signature itself. Therefore don't do the check to make sure it looks like a hash. Fixes #9658 Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9731)
This commit is contained in:
parent
280cc01808
commit
5ffc33244c
@ -398,8 +398,7 @@ int pkeyutl_main(int argc, char **argv)
|
|||||||
if (!rawin
|
if (!rawin
|
||||||
&& buf_inlen > EVP_MAX_MD_SIZE
|
&& buf_inlen > EVP_MAX_MD_SIZE
|
||||||
&& (pkey_op == EVP_PKEY_OP_SIGN
|
&& (pkey_op == EVP_PKEY_OP_SIGN
|
||||||
|| pkey_op == EVP_PKEY_OP_VERIFY
|
|| pkey_op == EVP_PKEY_OP_VERIFY)) {
|
||||||
|| pkey_op == EVP_PKEY_OP_VERIFYRECOVER)) {
|
|
||||||
BIO_printf(bio_err,
|
BIO_printf(bio_err,
|
||||||
"Error: The input data looks too long to be a hash\n");
|
"Error: The input data looks too long to be a hash\n");
|
||||||
goto end;
|
goto end;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user