[openssl/openssl] 6a0ae3: Blake2b: Use OSSL_DIGEST_PARAM_SIZE as settable in...

Tomáš Mráz noreply at github.com
Wed Oct 25 19:15:19 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 6a0ae393dd554eb718e5148696e8f437d4faae5b
      https://github.com/openssl/openssl/commit/6a0ae393dd554eb718e5148696e8f437d4faae5b
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2023-10-25 (Wed, 25 Oct 2023)

  Changed paths:
    M crypto/evp/digest.c
    M doc/man3/EVP_DigestInit.pod
    M doc/man7/EVP_MD-BLAKE2.pod
    M providers/implementations/digests/blake2_prov.c
    M providers/implementations/digests/blake2b_prov.c
    M providers/implementations/include/prov/blake2.h
    M providers/implementations/kdfs/argon2.c
    M test/evp_test.c
    M test/recipes/30-test_evp_data/evpmd_blake.txt

  Log Message:
  -----------
  Blake2b: Use OSSL_DIGEST_PARAM_SIZE as settable instead of XOFLEN

BLAKE2 is not really an extensible output function unlike SHAKE
as the digest size must be set during the context initialization.
Thus it makes no sense to use OSSL_DIGEST_PARAM_XOFLEN.

We also need to adjust EVP_DigestFinal_ex() to query the
OSSL_DIGEST_PARAM_SIZE as gettable ctx param for the size.

Fixes #22488

Reviewed-by: Richard Levitte <levitte at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Tim Hudson <tjh at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22491)




More information about the openssl-commits mailing list