openssl/crypto/rsa
Matt Caswell 985abd1fd8 Don't treat a bare OCTETSTRING as DigestInfo in int_rsa_verify
The function int_rsa_verify is an internal function used for verifying an
RSA signature. It takes an argument |dtype| which indicates the digest type
that was used. Dependant on that digest type the processing of the
signature data will vary. In particular if |dtype == NID_mdc2| and the
signature data is a bare OCTETSTRING then it is treated differently to the
default case where the signature data is treated as a DigestInfo (X509_SIG).

Due to a missing "else" keyword the logic actually correctly processes the
OCTETSTRING format signature first, and then attempts to continue and
process it as DigestInfo. This will invariably fail because we already know
that it is a bare OCTETSTRING.

This failure doesn't actualy make a real difference because it ends up at
the |err| label regardless and still returns a "success" result. This patch
just cleans things up to make it look a bit more sane.

RT#4076

Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit dffe51091f)
2015-10-08 14:11:59 +01:00
..
Makefile Fix the update target and remove duplicate file updates 2015-05-23 06:25:12 +02:00
rsa.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsa_ameth.c Reject invalid PSS parameters. 2015-03-19 12:58:35 +00:00
rsa_asn1.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsa_chk.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsa_crpt.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsa_depr.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsa_eay.c Rerun util/openssl-format-source -v -c . 2015-01-22 09:31:48 +00:00
rsa_err.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsa_gen.c use X9.31 keygen by default in FIPS mode 2015-07-30 14:34:45 +01:00
rsa_lib.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsa_locl.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsa_none.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsa_null.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsa_oaep.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsa_pk1.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsa_pmeth.c Fix buffer overrun in RSA signing 2015-04-30 23:21:53 +01:00
rsa_prn.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsa_pss.c Re-align some comments after running the reformat script. 2015-01-22 09:31:48 +00:00
rsa_saos.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsa_sign.c Don't treat a bare OCTETSTRING as DigestInfo in int_rsa_verify 2015-10-08 14:11:59 +01:00
rsa_ssl.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsa_test.c RT 3493: fix RSA test 2015-09-01 20:02:54 +02:00
rsa_x931.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00