diff options
author | Tomas Mraz <tomas@openssl.org> | 2022-11-14 19:31:17 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-11-23 18:21:42 +0100 |
commit | 74bfc163f10e01dda74aada66039ddec13d96d2f (patch) | |
tree | 2e39bfe79b30555e9e65fb6087568bb89662d897 /crypto | |
parent | 77d99f03a196878500beaeba8acf173987f7219e (diff) |
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)
(cherry picked from commit be0161ff100bf10c9549fc09ce4513681011da1c)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/modes/gcm128.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |