summaryrefslogtreecommitdiff
path: root/crypto/modes
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/modes')
-rw-r--r--crypto/modes/gcm128.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/modes/gcm128.c b/crypto/modes/gcm128.c
index e6e3455fd0..22ce8500b6 100644
--- a/crypto/modes/gcm128.c
+++ b/crypto/modes/gcm128.c
@@ -499,6 +499,11 @@ static void gcm_get_funcs(struct gcm_funcs_st *ctx)
}
return;
#endif
+#if defined(__s390__) || defined(__s390x__)
+ ctx->gmult = gcm_gmult_4bit;
+ ctx->ghash = gcm_ghash_4bit;
+ return;
+#endif
}
void CRYPTO_gcm128_init(GCM128_CONTEXT *ctx, void *key, block128_f block)