]> git.ipfire.org Git - thirdparty/openssl.git/commit
Redirect EVP_DigestInit to EVP_DigestSignInit_ex if appropriate
authorMatt Caswell <matt@openssl.org>
Fri, 11 Sep 2020 15:47:53 +0000 (16:47 +0100)
committerDmitry Belyavskiy <beldmit@gmail.com>
Thu, 17 Sep 2020 08:12:08 +0000 (11:12 +0300)
commitb0002eb09ac744d0c702c85648b2517e214580ea
tree4d1f82f57e424da26f53647ee3841facd71bca63
parentb8e5622809d3b3f61c4a615e51f5a8fd492ee23f
Redirect EVP_DigestInit to EVP_DigestSignInit_ex if appropriate

Prior to OpenSSL 3.0 calling EVP_DigestInit_ex() on an mdctx previously
initialised with EVP_DigestSignInit() would retain information about the
key, and re-initialise for another sign operation. To emulate that we
redirect calls to EVP_DigestInit() to EVP_DigestSignInit_ex() if
appropriate.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/12850)
crypto/evp/digest.c