Fix a crash or unbounded allocation in RSA_padding_add_PKCS1_PSS_mgf1
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 27 Feb 2017 11:40:35 +0000 (12:40 +0100)
committerAndy Polyakov <appro@openssl.org>
Mon, 13 Mar 2017 20:59:53 +0000 (21:59 +0100)
commit108909d30e8ea5ff39439b17b266039be1ec5e84
tree0ce82ef3999e3f4dc609f221f688902ee13555e7
parent41bee3e8fb749504f21f78dbf3eca85e5b84820b
Fix a crash or unbounded allocation in RSA_padding_add_PKCS1_PSS_mgf1
and RSA_verify_PKCS1_PSS_mgf1 with 512-bit RSA vs. sha-512.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2801)
crypto/rsa/rsa_pss.c