Have legacy blake2 EVP structure use base blake2 implementation
authorRichard Levitte <levitte@openssl.org>
Tue, 12 Sep 2023 12:58:03 +0000 (14:58 +0200)
committerPauli <pauli@openssl.org>
Wed, 13 Sep 2023 23:07:29 +0000 (09:07 +1000)
commitdf9ecd2ef3907ec0a7bf9c54d9273d5342329bf9
tree0df4482e5c855833c958842d958b58277b74398d
parent70e809b08a3fe70fed7f7ecdad88e5bb9fc3af1c
Have legacy blake2 EVP structure use base blake2 implementation

For some reason, the code here was made to got through the provider
specific init functions.  This is very very dangerous if the provider
specific functions were to change in any way (such as changes to the
implementation context structure).

Instead, use the init functions from the base blake2 implementations
directly.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22079)
crypto/evp/legacy_blake2.c
providers/implementations/digests/blake2_prov.c
providers/implementations/include/prov/blake2.h