/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/ |
D | hks_secure_access_test.cpp | 111 struct HksParamSet *runtimeParamSet = nullptr; variable 114 ret = BuildParamSetWithParam(&runtimeParamSet, &accessTokenIdRuntime, 1, true); 117 ret = HksProcessIdentityVerify(blobParamSet, runtimeParamSet); 120 HksFreeParamSet(&runtimeParamSet); 137 struct HksParamSet *runtimeParamSet = nullptr; variable 139 ret = BuildParamSetWithParam(&runtimeParamSet, &accessTokenIdRuntime, 1, true); 142 ret = HksProcessIdentityVerify(blobParamSet, runtimeParamSet); 145 HksFreeParamSet(&runtimeParamSet); 161 struct HksParamSet *runtimeParamSet = nullptr; variable 164 ret = BuildParamSetWithParam(&runtimeParamSet, &accessTokenIdRuntime, 1, true); [all …]
|
D | hks_core_service_test.cpp | 297 struct HksParamSet *runtimeParamSet = nullptr; variable 299 ret = BuildParamSetWithParam(&runtimeParamSet, &accessTokenIdRuntime); 303 ret = HksCoreExportPublicKey(&keyBlob, runtimeParamSet, &keyOutBlob); 309 HksFreeParamSet(&runtimeParamSet); 366 struct HksParamSet *runtimeParamSet = nullptr; variable 368 int32_t ret = BuildParamSetWithParam(&runtimeParamSet, &accessTokenIdRuntime); 371 ret = HksCoreExportPublicKey(&keyBlob, runtimeParamSet, nullptr); 372 ret = HksCoreExportPublicKey(nullptr, runtimeParamSet, &keyOutBlob); 376 HksFreeParamSet(&runtimeParamSet); 406 struct HksParamSet *runtimeParamSet = nullptr; variable [all …]
|
D | hks_keynode_test.cpp | 115 …struct HksParamSet *runtimeParamSet = reinterpret_cast<HksParamSet *>(HksMalloc(sizeof(HksParamSet… variable 116 ASSERT_EQ(runtimeParamSet == nullptr, false) << "runtimeParamSet malloc failed."; 117 FreeParamsForBuildKeyNode(&blob, &runtimeParamSet, nullptr, nullptr); 121 FreeParamsForBuildKeyNode(&blob, &runtimeParamSet, &keyBlobParamSet, nullptr); 125 FreeParamsForBuildKeyNode(&blob, &runtimeParamSet, &keyBlobParamSet, keyNode);
|
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
D | hks_keynode.c | 154 struct HksParamSet *runtimeParamSet = NULL; in HksCreateKeyNode() local 155 ret = BuildRuntimeParamSet(paramSet, &runtimeParamSet); in HksCreateKeyNode() 166 HksFreeParamSet(&runtimeParamSet); in HksCreateKeyNode() 177 HksFreeParamSet(&runtimeParamSet); in HksCreateKeyNode() 185 HksFreeParamSet(&runtimeParamSet); in HksCreateKeyNode() 191 keyNode->runtimeParamSet = runtimeParamSet; in HksCreateKeyNode() 195 static void FreeParamsForBuildKeyNode(struct HksBlob *aad, struct HksParamSet **runtimeParamSet, in FreeParamsForBuildKeyNode() argument 202 if (runtimeParamSet != NULL && *runtimeParamSet != NULL) { in FreeParamsForBuildKeyNode() 203 HksFreeParamSet(runtimeParamSet); in FreeParamsForBuildKeyNode() 222 struct HksParamSet *runtimeParamSet = NULL; in HksCreateKeyNode() local [all …]
|
D | hks_core_service_three_stage.c | 205 … ret = HksCheckParamsetOneAndPatamsetTwoExist(keyNode->keyBlobParamSet, keyNode->runtimeParamSet, in SignVerifyAuth() 262 int32_t ret = HksGetParam(keyNode->runtimeParamSet, HKS_TAG_CRYPTO_CTX, &ctxParam); in GetCryptoCtx() 270 int32_t ret = HksGetParam(keyNode->runtimeParamSet, HKS_TAG_CRYPTO_CTX, &ctxParam); in ClearCryptoCtx() 282 int32_t ret = HksGetParam(keyNode->runtimeParamSet, HKS_TAG_CRYPTO_CTX, &ctxParam); in SetCacheModeCtx() 338 int32_t ret = HksGetParam(keyNode->runtimeParamSet, HKS_TAG_CRYPTO_CTX, &ctxParam); in UpdateCachedData() 377 int32_t ret = HksGetParam(keyNode->runtimeParamSet, HKS_TAG_CRYPTO_CTX, &ctxParam); in FinishCachedData() 395 int32_t ret = HksGetParam(keyNode->runtimeParamSet, HKS_TAG_CRYPTO_CTX, &ctxParam); in CoreHashInit() 424 int32_t ret = HksGetParam(keyNode->runtimeParamSet, HKS_TAG_CRYPTO_CTX, &ctxParam); in CoreHashFinish() 454 ret = HksGetParam(keyNode->runtimeParamSet, HKS_TAG_PURPOSE, &tmpParam); in CheckSignVerifyParams() 483 HksFillUsageSpec(keyNode->runtimeParamSet, &usageSpec); in CoreSignVerify() [all …]
|
D | hks_secure_access.c | 1039 const struct HksParamSet *runtimeParamSet) in HksCheckCompareAccessTokenId() argument 1046 ret = HksGetParam(runtimeParamSet, HKS_TAG_ACCESS_TOKEN_ID, &runtimeAccessTokenId); in HksCheckCompareAccessTokenId() 1054 const struct HksParamSet *runtimeParamSet) in HksCheckCompareAccessTokenId() argument 1057 (void)runtimeParamSet; in HksCheckCompareAccessTokenId() 1063 const struct HksParamSet *runtimeParamSet) in HksCheckCompareUserId() argument 1070 ret = HksGetParam(runtimeParamSet, HKS_TAG_USER_ID, &runtimeUserId); in HksCheckCompareUserId() 1077 const struct HksParamSet *runtimeParamSet) in HksCheckCompareProcessName() argument 1084 ret = HksGetParam(runtimeParamSet, HKS_TAG_PROCESS_NAME, &runtimeProcessName); in HksCheckCompareProcessName() 1096 …ssIdentityVerify(const struct HksParamSet *blobParamSet, const struct HksParamSet *runtimeParamSet) in HksProcessIdentityVerify() argument 1101 ret = HksCheckCompareAccessTokenId(blobParamSet, runtimeParamSet); in HksProcessIdentityVerify() [all …]
|
D | hks_auth.c | 181 … return AuthPolicy(&g_authPolicyList[i], keyNode->keyBlobParamSet, keyNode->runtimeParamSet); in HksThreeStageAuth()
|
D | hks_core_service.c | 1493 int32_t ret = GetPurposeAndAlgorithm((*keyNode)->runtimeParamSet, pur, alg); in GetParamsForUpdateAndFinish() 1633 ret = GetPurposeAndAlgorithm(keyNode->runtimeParamSet, &pur, &alg); in HksCoreAbort()
|
/base/security/huks/services/huks_standard/huks_engine/main/core/include/ |
D | hks_keynode.h | 38 struct HksParamSet *runtimeParamSet; // only used to store caller's paramset member
|
D | hks_secure_access.h | 39 …sIdentityVerify(const struct HksParamSet *blobParamSet, const struct HksParamSet *runtimeParamSet);
|
/base/security/huks/frameworks/huks_standard/main/common/src/ |
D | hks_common_check.c | 243 const struct HksParamSet *runtimeParamSet, uint32_t tag) in HksCheckParamsetOneAndPatamsetTwoExist() argument 245 if (keyBlobParamSet == NULL || runtimeParamSet == NULL) { in HksCheckParamsetOneAndPatamsetTwoExist() 257 ret = HksGetParam(runtimeParamSet, tag, ¶mInParamsetTwo); in HksCheckParamsetOneAndPatamsetTwoExist()
|
/base/security/huks/frameworks/huks_standard/main/common/include/ |
D | hks_common_check.h | 70 const struct HksParamSet *runtimeParamSet, uint32_t tag);
|