From 524c2cab6a64f408a5444188c2052b4d76b06775 Mon Sep 17 00:00:00 2001 From: zhangzhilei Date: Mon, 17 Apr 2023 12:57:47 +0800 Subject: fix test failure on Kunpeng-920 Reviewed-by: Tomas Mraz Reviewed-by: Tom Cosgrove Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/20751) --- providers/implementations/ciphers/cipher_sm4_gcm_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'providers') diff --git a/providers/implementations/ciphers/cipher_sm4_gcm_hw.c b/providers/implementations/ciphers/cipher_sm4_gcm_hw.c index e2d225036d..5082809982 100644 --- a/providers/implementations/ciphers/cipher_sm4_gcm_hw.c +++ b/providers/implementations/ciphers/cipher_sm4_gcm_hw.c @@ -40,7 +40,7 @@ static int sm4_gcm_initkey(PROV_GCM_CTX *ctx, const unsigned char *key, #ifdef VPSM4_EX_CAPABLE if (VPSM4_EX_CAPABLE) { - SM4_GCM_HW_SET_KEY_CTR_FN(ks, vpsm4_ex_set_decrypt_key, vpsm4_ex_encrypt, + SM4_GCM_HW_SET_KEY_CTR_FN(ks, vpsm4_ex_set_encrypt_key, vpsm4_ex_encrypt, vpsm4_ex_ctr32_encrypt_blocks); } else #endif /* VPSM4_EX_CAPABLE */ -- cgit v1.2.1