diff options
-rw-r--r-- | providers/implementations/ciphers/cipher_sm4_gcm_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |