From 8292e62bfb6f41d6a11d5aef571810e094429676 Mon Sep 17 00:00:00 2001 From: lichaochen Date: Tue, 3 Jun 2025 15:11:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Duaf=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lichaochen --- .../crypto_operation/cipher/src/cipher_aes_openssl.c | 1 + .../crypto_operation/cipher/src/cipher_sm4_openssl.c | 1 + 2 files changed, 2 insertions(+) diff --git a/plugin/openssl_plugin/crypto_operation/cipher/src/cipher_aes_openssl.c b/plugin/openssl_plugin/crypto_operation/cipher/src/cipher_aes_openssl.c index d3df53b..462c45e 100644 --- a/plugin/openssl_plugin/crypto_operation/cipher/src/cipher_aes_openssl.c +++ b/plugin/openssl_plugin/crypto_operation/cipher/src/cipher_aes_openssl.c @@ -534,6 +534,7 @@ static HcfResult EngineUpdate(HcfCipherGeneratorSpi *self, HcfBlob *input, HcfBl if (ret != HCF_SUCCESS) { HcfBlobDataClearAndFree(output); FreeCipherData(&(cipherImpl->cipherData)); + return ret; } data->aead = false; FreeRedundantOutput(output); diff --git a/plugin/openssl_plugin/crypto_operation/cipher/src/cipher_sm4_openssl.c b/plugin/openssl_plugin/crypto_operation/cipher/src/cipher_sm4_openssl.c index 26f50be..612d0b2 100644 --- a/plugin/openssl_plugin/crypto_operation/cipher/src/cipher_sm4_openssl.c +++ b/plugin/openssl_plugin/crypto_operation/cipher/src/cipher_sm4_openssl.c @@ -461,6 +461,7 @@ static HcfResult EngineUpdate(HcfCipherGeneratorSpi *self, HcfBlob *input, HcfBl if (ret != HCF_SUCCESS) { HcfBlobDataClearAndFree(output); FreeCipherData(&(cipherImpl->cipherData)); + return ret; } data->aead = false; FreeRedundantOutput(output); -- Gitee