From 74bfc163f10e01dda74aada66039ddec13d96d2f Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Mon, 14 Nov 2022 19:31:17 +0100 Subject: 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) (cherry picked from commit be0161ff100bf10c9549fc09ce4513681011da1c) --- crypto/modes/gcm128.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crypto') diff --git a/crypto/modes/gcm128.c b/crypto/modes/gcm128.c index 8af79e8726..39994eeb95 100644 --- a/crypto/modes/gcm128.c +++ b/crypto/modes/gcm128.c @@ -453,6 +453,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 */ -- cgit v1.2.3