/drivers/peripheral/huks/hdi_service/ |
H A D | huks_hdi_template.h | 217 #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 D | huks_hdi_passthrough_adapter.h | 37 const struct HksBlob *plainText, struct HksBlob *cipherText);
40 const struct HksBlob *cipherText, struct HksBlob *plainText);
|
H A D | huks_sa_hdi_struct.h | 212 * @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 D | huks_hdi_passthrough_adapter.c | 181 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 D | huks_hdi_service.c | 161 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 D | adaptor_algorithm_test.cpp | 205 Buffer *cipherText = NULL; in HWTEST_F() local 207 int32_t result = AesGcm256Encrypt(plaintext1, ¶m, &cipherText, &tag); in HWTEST_F() 211 result = AesGcm256Decrypt(cipherText, ¶m, tag, &plaintext2); in HWTEST_F() 220 DestroyBuffer(cipherText); in HWTEST_F()
|
/drivers/peripheral/pin_auth/hdi_service/main/src/ |
H A D | collector_func.c | 355 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 D | verifier_func.c | 432 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 D | pin_db.c | 498 Buffer *cipherText = NULL; in GetPinCiperInfo() local 513 if (AesGcm256Encrypt(pinData, ¶m, &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, ¶m, &tag, &plainText); in GenerateDecodeCredential()
|