| /base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
| D | hks_keynode.c | 220 static void DeleteKeyNodeFree(struct HuksKeyNode *keyNode) in DeleteKeyNodeFree() 280 struct HuksKeyNode *keyNode = NULL; in HksCheckUniqueHandle() local 319 struct HuksKeyNode *keyNode = NULL; in DeleteFirstTimeOutBatchKeyNode() local 352 struct HuksKeyNode *keyNode = NULL; in DeleteFirstKeyNodeForTokenId() local 373 struct HuksKeyNode *keyNode = NULL; in DeleteKeyNodeForTokenIdIfExceedLimit() local 391 struct HuksKeyNode *keyNode = NULL; in DeleteFirstKeyNode() local 400 static int32_t AddKeyNode(struct HuksKeyNode *keyNode, uint32_t tokenId) in AddKeyNode() 430 struct HuksKeyNode *HksCreateBatchKeyNode(const struct HuksKeyNode *keyNode, const struct HksParamS… in HksCreateBatchKeyNode() 454 struct HuksKeyNode *keyNode = (struct HuksKeyNode *)HksMalloc(sizeof(struct HuksKeyNode)); in HksCreateKeyNode() local 506 struct HksParamSet **keyblobParamSet, struct HuksKeyNode *keyNode) in FreeParamsForBuildKeyNode() [all …]
|
| D | hks_core_service_three_stage.c | 219 static int32_t SignVerifyAuth(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet) in SignVerifyAuth() 244 static int32_t AgreeAuth(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet) in AgreeAuth() 257 static int32_t HmacAuth(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet) in HmacAuth() 271 static int32_t CipherAuth(const struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet) in CipherAuth() 287 static void *GetCryptoCtx(const struct HuksKeyNode *keyNode) in GetCryptoCtx() 295 static void ClearCryptoCtx(const struct HuksKeyNode *keyNode) in ClearCryptoCtx() 307 static int32_t SetCacheModeCtx(const struct HuksKeyNode *keyNode) in SetCacheModeCtx() 363 static int32_t UpdateCachedData(const struct HuksKeyNode *keyNode, const struct HksBlob *srcData) in UpdateCachedData() 401 static int32_t FinishCachedData(const struct HuksKeyNode *keyNode, const struct HksBlob *srcData, in FinishCachedData() 420 static int32_t CheckCachedDataMaxSize(const struct HuksKeyNode *keyNode, const struct HksBlob *inDa… in CheckCachedDataMaxSize() [all …]
|
| D | hks_core_service_key_operate_three_stage.c | 164 static int32_t HksBatchCheck(struct HuksKeyNode *keyNode) in HksBatchCheck() 185 static int32_t HksCoreInitProcess(const struct HuksKeyNode *keyNode, const struct HksParamSet *para… in HksCoreInitProcess() 209 static int32_t HksCoreUpdateProcess(struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet, in HksCoreUpdateProcess() 243 static int32_t HksCoreFinishProcess(struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet, in HksCoreFinishProcess() 281 …c int32_t HksAddBatchTimeToKeyNode(const struct HksParamSet *paramSet, struct HuksKeyNode *keyNode) in HksAddBatchTimeToKeyNode() 334 struct HuksKeyNode *keyNode = HksCreateKeyNode(key, paramSet); in HksCoreInit() local 373 struct HuksKeyNode **keyNode) in GetParamsForUpdateAndFinish() 389 static int32_t HksCheckBatchUpdateTime(struct HuksKeyNode *keyNode) in HksCheckBatchUpdateTime() 404 static int32_t HksBatchUpdate(struct HuksKeyNode *keyNode, const struct HksParamSet *paramSet, in HksBatchUpdate() 453 struct HuksKeyNode *keyNode = NULL; in HksCoreUpdate() local [all …]
|
| D | hks_secure_access.c | 59 struct HuksKeyNode *keyNode; member 284 static int32_t HksVerifyKeyChallenge(const struct HuksKeyNode *keyNode, const struct HksUserAuthTok… in HksVerifyKeyChallenge() 303 static int32_t HksVerifyKeyTimestamp(const struct HuksKeyNode *keyNode, const struct HksUserAuthTok… in HksVerifyKeyTimestamp() 390 static int32_t VerifyCustomChallenge(const struct HuksKeyNode *keyNode, const struct HksUserAuthTok… in VerifyCustomChallenge() 399 static int32_t VerifyNormalChallenge(const struct HuksKeyNode *keyNode, const struct HksUserAuthTok… in VerifyNormalChallenge() 404 static int32_t VerifyChallengeOrTimeStamp(const struct HuksKeyNode *keyNode, const struct HksUserAu… in VerifyChallengeOrTimeStamp() 506 static int32_t VerifyAuthTokenInfo(const struct HuksKeyNode *keyNode, const struct HksUserAuthToken… in VerifyAuthTokenInfo() 540 static int32_t HksAddVerifiedAuthTokenIfNeed(struct HuksKeyNode *keyNode, in HksAddVerifiedAuthTokenIfNeed() 591 static int32_t CheckIfNeedVerifyParams(const struct HuksKeyNode *keyNode, bool *isNeedVerify, in CheckIfNeedVerifyParams() 616 …AssignVerifyResultAndFree(int32_t outRet, struct HksParam *authResult, struct HuksKeyNode *keyNode, in AssignVerifyResultAndFree() [all …]
|
| D | hks_core_service_key_operate_one_stage.c | 60 static int32_t CipherAuth(const struct HksKeyNode *keyNode, const struct HksParamSet *paramSet) in CipherAuth() 75 static int32_t SignVerifyAuth(const struct HksKeyNode *keyNode, const struct HksParamSet *paramSet) in SignVerifyAuth() 145 static int32_t SignVerifyPreCheck(const struct HksKeyNode *keyNode, const struct HksParamSet *param… in SignVerifyPreCheck() 160 struct HksKeyNode *keyNode = HksGenerateKeyNode(key); in SignVerify() local 196 static int32_t CipherPreCheck(const struct HksKeyNode *keyNode, const struct HksParamSet *paramSet) in CipherPreCheck() 225 struct HksKeyNode *keyNode = HksGenerateKeyNode(key); in Cipher() local 289 struct HksKeyNode *keyNode = HksGenerateKeyNode(key); in HksCheckKeyValidity() local 312 struct HksKeyNode *keyNode = HksGenerateKeyNode(key); in HksCoreExportPublicKey() local 377 struct HksKeyNode *keyNode = HksGenerateKeyNode(mainKey); in HksCoreDeriveKey() local 411 struct HksKeyNode *keyNode = HksGenerateKeyNode(key); in HksCoreMac() local
|
| D | hks_core_service_key_attest.c | 89 struct HksKeyNode *keyNode = HksGenerateKeyNode(key); in HksCoreAttestKey() local
|
| D | hks_auth.c | 155 int32_t HksAuth(uint32_t authId, const struct HksKeyNode *keyNode, const struct HksParamSet *paramS… in HksAuth() 177 int32_t HksThreeStageAuth(uint32_t authId, const struct HuksKeyNode *keyNode) in HksThreeStageAuth()
|
| D | hks_sm_import_wrap_key.c | 104 …2_t GetPublicKeyAndSignDataLength(const struct HksBlob *wrappedKeyData, struct HksKeyNode *keyNode, in GetPublicKeyAndSignDataLength() 179 struct HksKeyNode *keyNode, struct HksSmWrappedKeyDataBlob *dataParams, uint32_t *partOffset) in DecryptKekWithSm2() 480 struct HksKeyNode *keyNode, const struct HksBlob *wrappedKeyData, struct HksBlob *keyOut) in HksSmImportWrappedKeyWithVerify() 524 struct HksKeyNode *keyNode, const struct HksBlob *wrappedKeyData, struct HksBlob *keyOut) in HksSmImportWrappedKeyWithoutVerify()
|
| D | hks_keyblob.c | 61 void HksFreeKeyNode(struct HksKeyNode **keyNode) in HksFreeKeyNode() 434 struct HksKeyNode *keyNode = (struct HksKeyNode *)HksMalloc(sizeof(struct HksKeyNode)); in HksGenerateKeyNode() local
|
| D | hks_upgrade_key.c | 298 struct HksKeyNode *keyNode = NULL; in HksUpgradeKey() local
|
| D | hks_keyblob_lite.c | 307 struct HksKeyNode *keyNode = (struct HksKeyNode *)HksMalloc(sizeof(struct HksKeyNode)); in HksGenerateKeyNode() local
|
| D | hks_core_service_key_generate.c | 130 struct HksKeyNode *keyNode = HksGenerateKeyNode(&tempKey); in GetAgreeBaseKey() local
|
| /base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/ |
| D | hks_keynode_test.cpp | 80 struct HuksKeyNode *keyNode = HksCreateKeyNode(nullptr, paramSet); variable 121 struct HuksKeyNode *keyNode = reinterpret_cast<HuksKeyNode *>(HksMalloc(sizeof(HuksKeyNode))); variable
|
| D | hks_keyblob_test.cpp | 181 struct HksKeyNode *keyNode = HksGenerateKeyNode(&keyBlob); variable
|
| D | hks_secure_access_test.cpp | 390 struct HuksKeyNode keyNode = { { nullptr, nullptr }, paramSet, nullptr, nullptr, 0 }; variable
|