Fix a crash or unbounded allocation in RSA_padding_add_PKCS1_PSS_mgf1
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 8 Mar 2017 17:53:36 +0000 (18:53 +0100)
committerAndy Polyakov <appro@openssl.org>
Mon, 13 Mar 2017 21:11:36 +0000 (22:11 +0100)
commit04cf39207f94abf89b3964c7710f22f829a1a78f
tree319a600de8d6e3bd2292c3d53d7dd5f1ca559cd2
parentd843779ddf77aec75bcbc4666bc1fdeb9b120fe4
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: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2881)

(cherry picked from commit e653b6cd74f70c04b0b96b07df00680b427603af)
crypto/rsa/rsa_pss.c