Home
last modified time | relevance | path

Searched refs:outputText (Results 1 – 4 of 4) sorted by relevance

/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/
Dcipher_sm2_openssl.c146 uint8_t *outputText = (uint8_t *)HcfMalloc(sizeof(uint8_t) * textLen, 0); in DoSm2EncryptAndDecrypt() local
147 if (outputText == NULL) { in DoSm2EncryptAndDecrypt()
153 … Openssl_sm2_encrypt(impl->sm2Key, impl->sm2Digest, input->data, input->len, outputText, &textLen); in DoSm2EncryptAndDecrypt()
155 … Openssl_sm2_decrypt(impl->sm2Key, impl->sm2Digest, input->data, input->len, outputText, &textLen); in DoSm2EncryptAndDecrypt()
158 HcfFree(outputText); in DoSm2EncryptAndDecrypt()
163 HcfFree(outputText); in DoSm2EncryptAndDecrypt()
167 output->data = outputText; in DoSm2EncryptAndDecrypt()
/base/security/huks/frameworks/huks_standard/main/core/src/
Dhks_local_engine.c173 const struct HksBlob *inputText, struct HksBlob *outputText) in CheckLocalCipherParams() argument
175 …HKS_IF_NOT_SUCC_RETURN(HksCheckBlob3AndParamSet(key, inputText, outputText, paramSet), HKS_ERROR_I… in CheckLocalCipherParams()
191 return HksLocalCheckCipherParams(cmdId, keySize, paramSet, inputText, outputText); in CheckLocalCipherParams()
195 const struct HksBlob *inputText, struct HksBlob *outputText) in EncryptAndDecrypt() argument
197 int32_t ret = CheckLocalCipherParams(cmdId, key, paramSet, inputText, outputText); in EncryptAndDecrypt()
207 ret = CipherEncrypt(key, paramSet, usageSpec, &tmpInputText, outputText); in EncryptAndDecrypt()
209 ret = HksCryptoHalDecrypt(key, usageSpec, &tmpInputText, outputText); in EncryptAndDecrypt()
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/
Dhks_ipc_serialization.h49 struct HksParamSet **paramSet, struct HksBlob *inputText, struct HksBlob *outputText);
Dhks_ipc_serialization.c287 struct HksParamSet **paramSet, struct HksBlob *inputText, struct HksBlob *outputText) in HksEncryptDecryptUnpack() argument
296 ret = MallocBlobFromBuffer(srcData, outputText, &offset); in HksEncryptDecryptUnpack()