Home
last modified time | relevance | path

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

/base/security/huks/services/huks_standard/huks_engine/main/core/include/
Dhks_core_service_three_stage.h33 int32_t HksCoreSignVerifyThreeStageInit(const struct HuksKeyNode *keyNode, const struct HksParamSet…
36 int32_t HksCoreSignVerifyThreeStageUpdate(const struct HuksKeyNode *keyNode, const struct HksParamS…
39 int32_t HksCoreSignVerifyThreeStageFinish(const struct HuksKeyNode *keyNode, const struct HksParamS…
42 int32_t HksCoreSignVerifyThreeStageAbort(const struct HuksKeyNode *keyNode, const struct HksParamSe…
45 int32_t HksCoreCryptoThreeStageInit(const struct HuksKeyNode *keyNode, const struct HksParamSet *pa…
48 int32_t HksCoreCryptoThreeStageUpdate(const struct HuksKeyNode *keyNode, const struct HksParamSet *…
51 int32_t HksCoreEncryptThreeStageFinish(const struct HuksKeyNode *keyNode, const struct HksParamSet …
54 int32_t HksCoreCryptoThreeStageAbort(const struct HuksKeyNode *keyNode, const struct HksParamSet *p…
57 int32_t HksCoreDecryptThreeStageFinish(const struct HuksKeyNode *keyNode, const struct HksParamSet …
60 int32_t HksCoreDeriveThreeStageInit(const struct HuksKeyNode *keyNode, const struct HksParamSet *pa…
[all …]
Dhks_secure_access.h25 int32_t HksCoreSecureAccessInitParams(struct HuksKeyNode *keyNode, const struct HksParamSet *initPa…
28 int32_t HksCoreSecureAccessVerifyParams(struct HuksKeyNode *keyNode, const struct HksParamSet *para…
30 int32_t HksCoreAppendAuthInfoBeforeUpdate(struct HuksKeyNode *keyNode, uint32_t pur,
33 int32_t HksCoreAppendAuthInfoBeforeFinish(struct HuksKeyNode *keyNode, uint32_t pur,
36 int32_t HksCoreAppendAuthInfoAfterFinish(struct HuksKeyNode *keyNode, uint32_t pur,
Dhks_keynode.h29 struct HuksKeyNode { struct
58 struct HuksKeyNode *HksCreateKeyNode(const struct HksBlob *key, const struct HksParamSet *paramSet); argument
60 struct HuksKeyNode *HksQueryKeyNode(uint64_t handle);
Dhks_core_service.h109 int32_t (*handler)(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet,
115 int32_t (*handler)(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet,
121 int32_t (*handler)(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet,
127 …int32_t (*handler)(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet, uint32_t…
Dhks_auth.h43 int32_t HksThreeStageAuth(uint32_t authId, const struct HuksKeyNode *keyNode);
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_keynode.c121 static int32_t AddKeyNode(struct HuksKeyNode *keyNode) in AddKeyNode()
142 struct HuksKeyNode *HksCreateKeyNode(const struct HksBlob *key, const struct HksParamSet *paramSet) in HksCreateKeyNode()
144 struct HuksKeyNode *keyNode = (struct HuksKeyNode *)HksMalloc(sizeof(struct HuksKeyNode)); in HksCreateKeyNode()
196 struct HksParamSet **keyblobParamSet, struct HuksKeyNode *keyNode) in FreeParamsForBuildKeyNode()
215 struct HuksKeyNode *HksCreateKeyNode(const struct HksBlob *key, const struct HksParamSet *paramSet) in HksCreateKeyNode()
217 struct HuksKeyNode *keyNode = (struct HuksKeyNode *)HksMalloc(sizeof(struct HuksKeyNode)); in HksCreateKeyNode()
255 struct HuksKeyNode *HksQueryKeyNode(uint64_t handle) in HksQueryKeyNode()
257 struct HuksKeyNode *keyNode = NULL; in HksQueryKeyNode()
364 struct HuksKeyNode *keyNode = NULL; in HksDeleteKeyNode()
Dhks_core_service_three_stage.c191 static int32_t SignVerifyAuth(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet) in SignVerifyAuth()
216 static int32_t AgreeAuth(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet) in AgreeAuth()
229 static int32_t HmacAuth(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet) in HmacAuth()
243 static int32_t CipherAuth(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet) in CipherAuth()
259 static void *GetCryptoCtx(const struct HuksKeyNode *keyNode) in GetCryptoCtx()
267 static void ClearCryptoCtx(const struct HuksKeyNode *keyNode) in ClearCryptoCtx()
279 static int32_t SetCacheModeCtx(const struct HuksKeyNode *keyNode) in SetCacheModeCtx()
335 static int32_t UpdateCachedData(const struct HuksKeyNode *keyNode, const struct HksBlob *srcData) in UpdateCachedData()
373 static int32_t FinishCachedData(const struct HuksKeyNode *keyNode, const struct HksBlob *srcData, in FinishCachedData()
392 static int32_t CoreHashInit(const struct HuksKeyNode *keyNode, uint32_t alg) in CoreHashInit()
[all …]
Dhks_secure_access.c55 struct HuksKeyNode *keyNode;
280 static int32_t HksVerifyKeyChallenge(const struct HuksKeyNode *keyNode, const struct HksUserAuthTok… in HksVerifyKeyChallenge()
299 static int32_t HksVerifyKeyTimestamp(const struct HuksKeyNode *keyNode, const struct HksUserAuthTok… in HksVerifyKeyTimestamp()
386 static int32_t VerifyCustomChallenge(const struct HuksKeyNode *keyNode, const struct HksUserAuthTok… in VerifyCustomChallenge()
395 static int32_t VerifyNormalChallenge(const struct HuksKeyNode *keyNode, const struct HksUserAuthTok… in VerifyNormalChallenge()
400 static int32_t VerifyChallengeOrTimeStamp(const struct HuksKeyNode *keyNode, const struct HksUserAu… in VerifyChallengeOrTimeStamp()
485 static int32_t VerifyAuthTokenInfo(const struct HuksKeyNode *keyNode, const struct HksUserAuthToken… in VerifyAuthTokenInfo()
515 static int32_t HksAddVerifiedAuthTokenIfNeed(struct HuksKeyNode *keyNode, in HksAddVerifiedAuthTokenIfNeed()
566 static int32_t CheckIfNeedVerifyParams(const struct HuksKeyNode *keyNode, bool *isNeedVerify, in CheckIfNeedVerifyParams()
591 …AssignVerifyResultAndFree(int32_t outRet, struct HksParam *authResult, struct HuksKeyNode *keyNode, in AssignVerifyResultAndFree()
[all …]
Dhks_auth.c177 int32_t HksThreeStageAuth(uint32_t authId, const struct HuksKeyNode *keyNode) in HksThreeStageAuth()
Dhks_core_service.c1436 struct HuksKeyNode *keyNode = HksCreateKeyNode(key, paramSet); in HksCoreInit()
1480 struct HuksKeyNode **keyNode, uint32_t *pur, uint32_t *alg) in GetParamsForUpdateAndFinish()
1517 struct HuksKeyNode *keyNode = NULL; in HksCoreUpdate()
1568 struct HuksKeyNode *keyNode = NULL; in HksCoreFinish()
1630 struct HuksKeyNode *keyNode = HksQueryKeyNode(sessionId); in HksCoreAbort()
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/
Dhks_keynode_test.cpp82 struct HuksKeyNode *keyNode = HksCreateKeyNode(nullptr, paramSet);
123 struct HuksKeyNode *keyNode = reinterpret_cast<HuksKeyNode *>(HksMalloc(sizeof(HuksKeyNode)));
Dhks_secure_access_test.cpp392 struct HuksKeyNode keyNode = { { nullptr, nullptr }, paramSet, nullptr, nullptr, 0 };