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:09:25 +0000 (22:09 +0100)
commite653b6cd74f70c04b0b96b07df00680b427603af
treed1f8dbeeedf08f1a3164632307dfbc3ffb1d41a4
parent641de7f7874439eb423eb7ace8fec58160cd6e37
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)
crypto/rsa/rsa_pss.c