Mailing List Archive

[PATCH 3/3] sm4: fix wrong macro used for GFNI/AVX2 code-path
* cipher/sm4.c (sm4_get_crypt_blk1_16_fn): Use USE_GFNI_AVX2 for
GFNI/AVX2 block.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
---
cipher/sm4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cipher/sm4.c b/cipher/sm4.c
index d4711603..1c54b339 100644
--- a/cipher/sm4.c
+++ b/cipher/sm4.c
@@ -784,7 +784,7 @@ sm4_get_crypt_blk1_16_fn(SM4_context *ctx)
{
if (0)
;
-#ifdef USE_AESNI_AVX
+#ifdef USE_GFNI_AVX2
else if (ctx->use_gfni_avx2)
{
return &sm4_gfni_avx2_crypt_blk1_16;
--
2.34.1


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@lists.gnupg.org
https://lists.gnupg.org/mailman/listinfo/gcrypt-devel