fix test failure on Kunpeng-920

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20751)
This commit is contained in:
zhangzhilei 2023-04-17 12:57:47 +08:00 committed by Pauli
parent 8b6bbcaa7b
commit 524c2cab6a

View File

@ -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 */