Cache maskHash parameter
authorDr. Stephen Henson <steve@openssl.org>
Thu, 24 Nov 2016 18:51:54 +0000 (18:51 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 8 Jan 2017 01:42:46 +0000 (01:42 +0000)
commit6745a1ff3268f3e3598df3ec3c34b08b369ed1bf
treec6f2ba36b562b49c5c91805e3bdfb3c737d6e5dd
parent3b72dcd5fb4d2c756a830dba1fc34f4a7ae61b73
Cache maskHash parameter

Store hash algorithm used for MGF1 masks in PSS and OAEP modes in PSS and
OAEP parameter structure: this avoids the need to decode part of the ASN.1
structure every time it is used.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2177)
crypto/rsa/rsa_ameth.c
crypto/rsa/rsa_asn1.c
include/openssl/rsa.h