From: Tomas Mraz Date: Mon, 14 Nov 2022 18:31:17 +0000 (+0100) Subject: gcm_get_funcs(): Add missing fallback for ghash on x86_64 X-Git-Tag: openssl-3.2.0-alpha1~1726 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be0161ff100bf10c9549fc09ce4513681011da1c;p=thirdparty%2Fopenssl.git gcm_get_funcs(): Add missing fallback for ghash on x86_64 Fixes #19673 Reviewed-by: Hugo Landau Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/19674) --- diff --git a/crypto/modes/gcm128.c b/crypto/modes/gcm128.c index 9a9adc9df86..0b31e671f0a 100644 --- a/crypto/modes/gcm128.c +++ b/crypto/modes/gcm128.c @@ -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 */