Home
last modified time | relevance | path

Searched refs:cipherText (Results 1 - 9 of 9) sorted by relevance

/drivers/peripheral/huks/hdi_service/
H A Dhuks_hdi_template.h217 #define HDI_CONVERTER_FUNC_ENCRYPT(key, paramSet, plainText, cipherText, ret, func) \
225 HDI_CONVERTER_PARAM_IN_BLOB(cipherText, &cipherTextCore) \
229 HDI_ADAPTER_PARAM(cipherText, &cipherTextCore)); \
230 HDI_CONVERTER_PARAM_OUT_BLOB(&cipherTextCore, cipherText)
232 #define HDI_CONVERTER_FUNC_DECRYPT(key, paramSet, cipherText, plainText, ret, func) \
239 HDI_CONVERTER_PARAM_IN_BLOB(cipherText, &cipherTextCore) \
243 HDI_ADAPTER_PARAM(cipherText, &cipherTextCore), \
H A Dhuks_hdi_passthrough_adapter.h37 const struct HksBlob *plainText, struct HksBlob *cipherText);
40 const struct HksBlob *cipherText, struct HksBlob *plainText);
H A Dhuks_sa_hdi_struct.h212 * @param cipherText encrypted data
216 const struct HksBlob *plainText, struct HksBlob *cipherText);
222 * @param cipherText the data needs to decrypt
227 const struct HksBlob *cipherText, struct HksBlob *plainText);
H A Dhuks_hdi_passthrough_adapter.c181 const struct HksBlob *plainText, struct HksBlob *cipherText) in HuksHdiAdapterEncrypt()
188 return g_coreEngine->HuksHdiEncrypt(key, paramSet, plainText, cipherText); in HuksHdiAdapterEncrypt()
192 const struct HksBlob *cipherText, struct HksBlob *plainText) in HuksHdiAdapterDecrypt()
199 return g_coreEngine->HuksHdiDecrypt(key, paramSet, cipherText, plainText); in HuksHdiAdapterDecrypt()
180 HuksHdiAdapterEncrypt(const struct HksBlob *key, const struct HksParamSet *paramSet, const struct HksBlob *plainText, struct HksBlob *cipherText) HuksHdiAdapterEncrypt() argument
191 HuksHdiAdapterDecrypt(const struct HksBlob *key, const struct HksParamSet *paramSet, const struct HksBlob *cipherText, struct HksBlob *plainText) HuksHdiAdapterDecrypt() argument
H A Dhuks_hdi_service.c161 const struct HuksBlob *plainText, struct HuksBlob *cipherText) in HuksEncrypt()
165 HDI_CONVERTER_FUNC_ENCRYPT(encKey, paramSet, plainText, cipherText, ret, HuksHdiAdapterEncrypt) in HuksEncrypt()
170 const struct HuksBlob *cipherText, struct HuksBlob *plainText) in HuksDecrypt()
174 HDI_CONVERTER_FUNC_DECRYPT(encKey, paramSet, cipherText, plainText, ret, HuksHdiAdapterDecrypt) in HuksDecrypt()
160 HuksEncrypt(struct IHuks *self, const struct HuksBlob *encKey, const struct HuksParamSet *paramSet, const struct HuksBlob *plainText, struct HuksBlob *cipherText) HuksEncrypt() argument
169 HuksDecrypt(struct IHuks *self, const struct HuksBlob *encKey, const struct HuksParamSet *paramSet, const struct HuksBlob *cipherText, struct HuksBlob *plainText) HuksDecrypt() argument
/drivers/peripheral/pin_auth/test/unittest/pin_auth/adaptor/src/
H A Dadaptor_algorithm_test.cpp205 Buffer *cipherText = NULL; in HWTEST_F() local
207 int32_t result = AesGcm256Encrypt(plaintext1, &param, &cipherText, &tag); in HWTEST_F()
211 result = AesGcm256Decrypt(cipherText, &param, tag, &plaintext2); in HWTEST_F()
220 DestroyBuffer(cipherText); in HWTEST_F()
/drivers/peripheral/pin_auth/hdi_service/main/src/
H A Dcollector_func.c355 Buffer *cipherText = NULL; in SetEncryptParam() local
357 int32_t result = AesGcm256Encrypt(&plainText, &aesGcmParam, &cipherText, &tag); in SetEncryptParam()
367 result = SetBufferToAttribute(attribute, PIN_ATTR_KEK_SECRET, cipherText); in SetEncryptParam()
380 DestroyBuffer(cipherText); in SetEncryptParam()
H A Dverifier_func.c432 Buffer *cipherText = GetBufferFromAttribute(attribute, PIN_ATTR_KEK_SECRET, CONST_PIN_DATA_LEN); in GetPinData() local
433 if (cipherText == NULL) { in GetPinData()
442 result = AesGcm256Decrypt(cipherText, &aesGcmParam, tag, &plainText); in GetPinData()
450 DestroyBuffer(cipherText); in GetPinData()
/drivers/peripheral/pin_auth/hdi_service/database/src/
H A Dpin_db.c498 Buffer *cipherText = NULL; in GetPinCiperInfo() local
513 if (AesGcm256Encrypt(pinData, &param, &cipherText, &tag) != RESULT_SUCCESS) { in GetPinCiperInfo()
518 cipherInfo = SplicePinCiperInfo(param.iv, tag, cipherText); in GetPinCiperInfo()
526 DestroyBuffer(cipherText); in GetPinCiperInfo()
930 Buffer cipherText = GetTmpBuffer( in GenerateDecodeCredential() local
933 int32_t result = AesGcm256Decrypt(&cipherText, &param, &tag, &plainText); in GenerateDecodeCredential()

Completed in 7 milliseconds