]> granicus.if.org Git - openssl/commit
Refactor SSKDF to create the MAC contexts early
authorRichard Levitte <levitte@openssl.org>
Thu, 19 Sep 2019 09:51:22 +0000 (11:51 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 20 Sep 2019 06:28:47 +0000 (08:28 +0200)
commitd3386f770a360cd77078041e496d88f7f6ba76c6
tree941bf03fa3559aba7adc95886f9818c3251acb71
parent4e8b8e47c85a45d1bda3241d7b2852d82db2a255
Refactor SSKDF to create the MAC contexts early

The SSKDF implementation fetched the digest(s) for the underlying MAC,
just to get their names and pass those down to the MAC, which in turn
would fetch those same digests again.

This change circumvents this by fetching the MAC and create the MAC
contexts for them directly when this PRF receives the relevant
parameters, thus only having to pass EVP_MAC_CTX pointers around.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9946)
providers/common/kdfs/sskdf.c