Home
last modified time | relevance | path

Searched refs:runtimeParamSet (Results 1 – 12 of 12) sorted by relevance

/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/
Dhks_secure_access_test.cpp111 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 …]
Dhks_core_service_test.cpp297 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 …]
Dhks_keynode_test.cpp115 …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/
Dhks_keynode.c154 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 …]
Dhks_core_service_three_stage.c205 … 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 …]
Dhks_secure_access.c1039 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 …]
Dhks_auth.c181 … return AuthPolicy(&g_authPolicyList[i], keyNode->keyBlobParamSet, keyNode->runtimeParamSet); in HksThreeStageAuth()
Dhks_core_service.c1493 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/
Dhks_keynode.h38 struct HksParamSet *runtimeParamSet; // only used to store caller's paramset member
Dhks_secure_access.h39 …sIdentityVerify(const struct HksParamSet *blobParamSet, const struct HksParamSet *runtimeParamSet);
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_common_check.c243 const struct HksParamSet *runtimeParamSet, uint32_t tag) in HksCheckParamsetOneAndPatamsetTwoExist() argument
245 if (keyBlobParamSet == NULL || runtimeParamSet == NULL) { in HksCheckParamsetOneAndPatamsetTwoExist()
257 ret = HksGetParam(runtimeParamSet, tag, &paramInParamsetTwo); in HksCheckParamsetOneAndPatamsetTwoExist()
/base/security/huks/frameworks/huks_standard/main/common/include/
Dhks_common_check.h70 const struct HksParamSet *runtimeParamSet, uint32_t tag);