From: наб Date: Sun, 12 Nov 2023 23:44:06 +0000 (+0100) Subject: Fix BLAKE2s reporting the same EVP_MD_get_size() as BLAKE2b (64) X-Git-Tag: openssl-3.3.0-alpha1~618 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11e61b3174762ec21ce0875a6449c61e316b4a0b;p=thirdparty%2Fopenssl.git 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) --- 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[] = { \