gcm_get_funcs(): Add missing fallback for ghash on x86_64

Fixes #19673

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19674)
This commit is contained in:
Tomas Mraz 2022-11-14 19:31:17 +01:00
parent cc910f1b31
commit be0161ff10

View File

@ -457,6 +457,11 @@ static void gcm_get_funcs(struct gcm_funcs_st *ctx)
ctx->gmult = gcm_gmult_4bit_x86;
ctx->ghash = gcm_ghash_4bit_x86;
return;
# else
/* x86_64 fallback defaults */
ctx->gmult = gcm_gmult_4bit;
ctx->ghash = gcm_ghash_4bit;
return;
# endif
#elif defined(GHASH_ASM_ARM)
/* ARM defaults */