From 11e61b3174762ec21ce0875a6449c61e316b4a0b Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=BD=D0=B0=D0=B1?= Date: Mon, 13 Nov 2023 00:44:06 +0100 Subject: [PATCH] Fix BLAKE2s reporting the same EVP_MD_get_size() as BLAKE2b (64) Fixes: commit 6d1e730a1ea2c64bdffa88c6b3bee4c3f5bed602 ("Implement BLAKE2s with the same macro as BLAKE2b") Closes: #22708 Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/22710) --- providers/implementations/digests/blake2_prov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/implementations/digests/blake2_prov.c b/providers/implementations/digests/blake2_prov.c index befdcc6a17e..37c3e7038e0 100644 --- a/providers/implementations/digests/blake2_prov.c +++ b/providers/implementations/digests/blake2_prov.c @@ -160,7 +160,7 @@ static int blake##variantsize##_internal_final(void *ctx, unsigned char *out, \ \ static int blake##variantsize##_get_params(OSSL_PARAM params[]) \ { \ - return ossl_digest_default_get_params(params, BLAKE##VARIANT##_BLOCKBYTES, 64, 0); \ + return ossl_digest_default_get_params(params, BLAKE##VARIANT##_BLOCKBYTES, BLAKE##VARIANT##_OUTBYTES, 0); \ } \ \ const OSSL_DISPATCH ossl_blake##variantsize##_functions[] = { \ -- 2.47.2