Searched refs:aadParam (Results 1 – 8 of 8) sorted by relevance
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/ |
D | hks_base_check_test.cpp | 297 struct HksParam aadParam = { .tag = HKS_TAG_ASSOCIATED_DATA, .blob = aad }; variable 298 ret = HksAddParams(paramSet, &aadParam, 1); 323 struct HksParam aadParam = { .tag = HKS_TAG_ASSOCIATED_DATA, .blob = aad }; variable 324 ret = HksAddParams(paramSet, &aadParam, 1);
|
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
D | hks_chipset_platform_decrypt.c | 148 struct HksParam *aadParam = NULL; in DoAesDecrypt() local 149 ret = HksGetParam(paramSecureSet, HKS_TAG_ASSOCIATED_DATA, &aadParam); in DoAesDecrypt() 156 struct HksBlob aad = aadParam->blob; in DoAesDecrypt()
|
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
D | hks_test_aes.c | 92 struct HksParam aadParam = {0}; in ConstructParamSetEncryptDecryptAesPost() local 93 aadParam.tag = HKS_TAG_ASSOCIATED_DATA; in ConstructParamSetEncryptDecryptAesPost() 94 aadParam.blob.data = g_aad; in ConstructParamSetEncryptDecryptAesPost() 95 aadParam.blob.size = sizeof(g_aad); in ConstructParamSetEncryptDecryptAesPost() 96 ret = HksAddParams(*paramSet, (const struct HksParam *)&aadParam, 1); in ConstructParamSetEncryptDecryptAesPost()
|
D | hks_test_common.c | 289 struct HksParam aadParam = {0}; in TestAesCipherParamSetPost() local 290 aadParam.tag = HKS_TAG_ASSOCIATED_DATA; in TestAesCipherParamSetPost() 291 aadParam.blob = *(paramStruct->aadBlob); in TestAesCipherParamSetPost() 292 ret = HksAddParams(paramSet, (const struct HksParam *)&aadParam, 1); in TestAesCipherParamSetPost()
|
/base/security/huks/test/unittest/huks_lite_test/common/ |
D | hks_test_aes.c | 93 struct HksParam aadParam = {0}; in ConstructParamSetEncryptDecryptAesPost() local 94 aadParam.tag = HKS_TAG_ASSOCIATED_DATA; in ConstructParamSetEncryptDecryptAesPost() 95 aadParam.blob.data = g_aad; in ConstructParamSetEncryptDecryptAesPost() 96 aadParam.blob.size = sizeof(g_aad); in ConstructParamSetEncryptDecryptAesPost() 97 ret = HksAddParams(*paramSet, (const struct HksParam *)&aadParam, 1); in ConstructParamSetEncryptDecryptAesPost()
|
D | hks_test_common.c | 292 struct HksParam aadParam = {0}; in TestAesCipherParamSetPost() local 293 aadParam.tag = HKS_TAG_ASSOCIATED_DATA; in TestAesCipherParamSetPost() 294 aadParam.blob = *(paramStruct->aadBlob); in TestAesCipherParamSetPost() 295 ret = HksAddParams(paramSet, (const struct HksParam *)&aadParam, 1); in TestAesCipherParamSetPost()
|
/base/security/huks/frameworks/huks_standard/main/common/src/ |
D | hks_crypto_adapter.c | 116 struct HksParam *aadParam = NULL; in HksFillAeadParam() local 117 ret = HksGetParam(paramSet, HKS_TAG_ASSOCIATED_DATA, &aadParam); in HksFillAeadParam() 142 aeadParam->aad = aadParam->blob; in HksFillAeadParam()
|
D | hks_base_check.c | 1407 struct HksParam *aadParam = NULL; in CheckCipherAeAadMaterial() local 1408 int32_t ret = HksGetParam(paramSet, HKS_TAG_ASSOCIATED_DATA, &aadParam); in CheckCipherAeAadMaterial() 1410 HKS_IF_NOT_SUCC_RETURN(CheckBlob(&aadParam->blob), HKS_ERROR_INVALID_AAD) in CheckCipherAeAadMaterial() 1414 if (aadParam->blob.size < HKS_AES_CCM_AAD_LEN_MIN) { in CheckCipherAeAadMaterial() 1415 HKS_LOG_E("ccm invalid aad size, aad size = %" LOG_PUBLIC "u", aadParam->blob.size); in CheckCipherAeAadMaterial()
|