/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
D | hks_test_curve25519.c | 51 struct HksParam digestParam = {0}; in TestGenerateEd25519Key() local 52 digestParam.tag = HKS_TAG_DIGEST; in TestGenerateEd25519Key() 53 digestParam.uint32Param = HKS_DIGEST_SHA512; in TestGenerateEd25519Key() 54 ret = HksAddParams(paramSet, &digestParam, 1); in TestGenerateEd25519Key() 86 struct HksParam digestParam = {0}; in TestSignEd25519() local 87 digestParam.tag = HKS_TAG_DIGEST; in TestSignEd25519() 88 digestParam.uint32Param = HKS_DIGEST_SHA512; in TestSignEd25519() 89 ret = HksAddParams(paramSet, &digestParam, 1); in TestSignEd25519() 128 struct HksParam digestParam = {0}; in TestVerifyEd25519() local 129 digestParam.tag = HKS_TAG_DIGEST; in TestVerifyEd25519() [all …]
|
D | hks_test_common.c | 126 struct HksParam digestParam = {0}; in TestGenerateKeyParamSetPre() local 127 digestParam.tag = HKS_TAG_DIGEST; in TestGenerateKeyParamSetPre() 128 digestParam.uint32Param = paramStruct->digest; in TestGenerateKeyParamSetPre() 129 ret = HksAddParams(paramSet, (const struct HksParam *) &digestParam, 1); in TestGenerateKeyParamSetPre() 348 struct HksParam digestParam = {0}; in TestConstructMacParamSet() local 349 digestParam.tag = HKS_TAG_DIGEST; in TestConstructMacParamSet() 350 digestParam.uint32Param = paramStruct->digest; in TestConstructMacParamSet() 351 ret = HksAddParams(paramSet, (const struct HksParam *) &digestParam, 1); in TestConstructMacParamSet() 446 struct HksParam digestParam = {0}; in TestDeriveParamSetPre() local 447 digestParam.tag = HKS_TAG_DIGEST; in TestDeriveParamSetPre() [all …]
|
/base/security/huks/test/unittest/huks_lite_test/common/ |
D | hks_test_curve25519.c | 53 struct HksParam digestParam = {0}; in TestGenerateEd25519Key() local 54 digestParam.tag = HKS_TAG_DIGEST; in TestGenerateEd25519Key() 55 digestParam.uint32Param = HKS_DIGEST_SHA512; in TestGenerateEd25519Key() 56 ret = HksAddParams(paramSet, &digestParam, 1); in TestGenerateEd25519Key() 88 struct HksParam digestParam = {0}; in TestSignEd25519() local 89 digestParam.tag = HKS_TAG_DIGEST; in TestSignEd25519() 90 digestParam.uint32Param = HKS_DIGEST_SHA512; in TestSignEd25519() 91 ret = HksAddParams(paramSet, &digestParam, 1); in TestSignEd25519() 130 struct HksParam digestParam = {0}; in TestVerifyEd25519() local 131 digestParam.tag = HKS_TAG_DIGEST; in TestVerifyEd25519() [all …]
|
D | hks_test_common.c | 129 struct HksParam digestParam = {0}; in TestGenerateKeyParamSetPre() local 130 digestParam.tag = HKS_TAG_DIGEST; in TestGenerateKeyParamSetPre() 131 digestParam.uint32Param = paramStruct->digest; in TestGenerateKeyParamSetPre() 132 ret = HksAddParams(paramSet, (const struct HksParam *) &digestParam, 1); in TestGenerateKeyParamSetPre() 351 struct HksParam digestParam = {0}; in TestConstructMacParamSet() local 352 digestParam.tag = HKS_TAG_DIGEST; in TestConstructMacParamSet() 353 digestParam.uint32Param = paramStruct->digest; in TestConstructMacParamSet() 354 ret = HksAddParams(paramSet, (const struct HksParam *) &digestParam, 1); in TestConstructMacParamSet() 449 struct HksParam digestParam = {0}; in TestDeriveParamSetPre() local 450 digestParam.tag = HKS_TAG_DIGEST; in TestDeriveParamSetPre() [all …]
|
/base/security/appverify/interfaces/innerkits/appverify/src/util/ |
D | hap_signing_block_utils.cpp | 437 DigestParameter digestParam = GetDigestParameter(nId); in VerifyHapIntegrity() local 439 … if (!ComputeDigestsForEachChunk(digestParam, content, ZIP_BLOCKS_NUM_NEED_DIGEST, chunkDigest)) { in VerifyHapIntegrity() 445 …if (!ComputeDigestsWithOptionalBlock(digestParam, signInfo.optionBlocks, chunkDigest, actualDigest… in VerifyHapIntegrity() 457 bool HapSigningBlockUtils::ComputeDigestsWithOptionalBlock(const DigestParameter& digestParam, in ComputeDigestsWithOptionalBlock() argument 461 …int32_t digestLen = HapVerifyOpensslUtils::GetDigest(chunkDigest, optionalBlocks, digestParam, out… in ComputeDigestsWithOptionalBlock() 462 if (digestLen != digestParam.digestOutputSizeBytes) { in ComputeDigestsWithOptionalBlock() 464 digestLen, digestParam.digestOutputSizeBytes); in ComputeDigestsWithOptionalBlock() 468 finalDigest.SetCapacity(digestParam.digestOutputSizeBytes); in ComputeDigestsWithOptionalBlock() 469 finalDigest.PutData(0, reinterpret_cast<char*>(out), digestParam.digestOutputSizeBytes); in ComputeDigestsWithOptionalBlock() 500 bool HapSigningBlockUtils::ComputeDigestsForEachChunk(const DigestParameter& digestParam, in ComputeDigestsForEachChunk() argument [all …]
|
/base/security/appverify/interfaces/innerkits/appverify/src/common/ |
D | hap_byte_buffer_data_source.cpp | 46 bool HapByteBufferDataSource::ReadDataAndDigestUpdate(const DigestParameter& digestParam, int32_t c… in ReadDataAndDigestUpdate() argument 50 bool res = HapVerifyOpensslUtils::DigestUpdate(digestParam, chunk, chunkSize); in ReadDataAndDigestUpdate()
|
D | hap_file_data_source.cpp | 48 bool HapFileDataSource::ReadDataAndDigestUpdate(const DigestParameter& digestParam, int32_t chunkSi… in ReadDataAndDigestUpdate() argument 50 …if (!hapFileRandomAccess.ReadFileFromOffsetAndDigestUpdate(digestParam, chunkSize, fileOffset + so… in ReadDataAndDigestUpdate()
|
D | random_access_file.cpp | 145 bool RandomAccessFile::ReadFileFromOffsetAndDigestUpdate(const DigestParameter& digestParam, in ReadFileFromOffsetAndDigestUpdate() argument 156 bool res = HapVerifyOpensslUtils::DigestUpdate(digestParam, content, chunkSize); in ReadFileFromOffsetAndDigestUpdate()
|
/base/security/appverify/interfaces/innerkits/appverify/include/util/ |
D | hap_signing_block_utils.h | 98 DLL_EXPORT static bool ComputeDigestsWithOptionalBlock(const DigestParameter& digestParam, 101 … static bool ComputeDigestsForEachChunk(const DigestParameter& digestParam, DataSource* contents[], 104 static bool InitDigestPrefix(const DigestParameter& digestParam,
|
/base/security/appverify/interfaces/innerkits/appverify/include/common/ |
D | data_source.h | 30 virtual bool ReadDataAndDigestUpdate(const DigestParameter& digestParam, int32_t chunkSize) = 0;
|
D | hap_byte_buffer_data_source.h | 33 bool ReadDataAndDigestUpdate(const DigestParameter& digestParam, int32_t chunkSize) override;
|
D | hap_file_data_source.h | 32 bool ReadDataAndDigestUpdate(const DigestParameter& digestParam, int32_t chunkSize) override;
|
D | random_access_file.h | 40 …bool ReadFileFromOffsetAndDigestUpdate(const DigestParameter& digestParam, int32_t chunkSize, long…
|
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
D | hks_core_service.c | 360 struct HksParam *digestParam = NULL; in GetSignVerifyMessage() local 361 ret = HksGetParam(nodeParamSet, HKS_TAG_DIGEST, &digestParam); in GetSignVerifyMessage() 368 ret = HksGetParam(paramSet, HKS_TAG_DIGEST, &digestParam); in GetSignVerifyMessage() 372 if (HksCheckNeedCache(algParam->uint32Param, digestParam->uint32Param) == HKS_SUCCESS) { in GetSignVerifyMessage() 384 ret = HksCryptoHalHash(digestParam->uint32Param, srcData, message); in GetSignVerifyMessage() 1184 struct HksParam *digestParam = NULL; in HksCoreMac() local 1185 ret = HksGetParam(paramSet, HKS_TAG_DIGEST, &digestParam); in HksCoreMac() 1192 ret = HksCryptoHalHmac(&rawKey, digestParam->uint32Param, srcData, mac); in HksCoreMac() 1262 struct HksParam *digestParam = NULL; in HksCoreCalcMacHeader() local 1263 ret = HksGetParam(paramSet, HKS_TAG_DIGEST, &digestParam); in HksCoreCalcMacHeader() [all …]
|
D | hks_core_service_three_stage.c | 518 struct HksParam *digestParam = NULL; in FreeSignVerifyCtx() local 519 ret = HksGetParam(keyNode->runtimeParamSet, HKS_TAG_DIGEST, &digestParam); in FreeSignVerifyCtx() 524 if (HksCheckNeedCache(algParam->uint32Param, digestParam->uint32Param) == HKS_SUCCESS) { in FreeSignVerifyCtx() 1335 struct HksParam *digestParam = NULL; in HksCoreMacThreeStageFinish() local 1336 int32_t ret = HksGetParam(keyNode->runtimeParamSet, HKS_TAG_DIGEST, &digestParam); in HksCoreMacThreeStageFinish() 1340 ret = HksGetDigestLen(digestParam->uint32Param, &macLen); in HksCoreMacThreeStageFinish()
|
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/ |
D | hap_signing_block_utils_test.cpp | 318 DigestParameter digestParam = hapSignBlockUtils.GetDigestParameter(nid); variable 319 …ret = hapSignBlockUtils.ComputeDigestsWithOptionalBlock(digestParam, optionalBlocks, chunkDigest, …
|
/base/security/huks/frameworks/huks_standard/main/common/src/ |
D | hks_check_paramset.c | 274 struct HksParam *digestParam = NULL; in CheckAndGetDigest() local 275 int32_t ret = HksGetParam(paramSet, HKS_TAG_DIGEST, &digestParam); in CheckAndGetDigest() 279 ret = HksCheckValue(digestParam->uint32Param, expectDigest, expectCnt); in CheckAndGetDigest() 281 "digest value %" LOG_PUBLIC "u not expected", digestParam->uint32Param) in CheckAndGetDigest() 283 *digest = digestParam->uint32Param; in CheckAndGetDigest()
|
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/mini/ |
D | huks_adapter.c | 122 struct HksParam digestParam[] = { in Sha256() local 128 int32_t res = ConstructParamSet(¶mSet, digestParam, CAL_ARRAY_SIZE(digestParam)); in Sha256()
|
/base/security/huks/services/huks_standard/huks_service/main/core/src/ |
D | hks_storage_lite.c | 52 struct HksParam digestParam = { in ConstructCalcMacParamSet() local 57 ret = HksAddParams(outputParamSet, &digestParam, 1); /* 1: param count */ in ConstructCalcMacParamSet()
|
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/small/ |
D | huks_adapter.c | 102 struct HksParam digestParam[] = { in Sha256() local 108 int32_t res = ConstructParamSet(¶mSet, digestParam, CAL_ARRAY_SIZE(digestParam)); in Sha256()
|
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/standard/ |
D | huks_adapter.c | 104 struct HksParam digestParam[] = { in Sha256() local 110 int32_t res = ConstructParamSet(¶mSet, digestParam, CAL_ARRAY_SIZE(digestParam)); in Sha256()
|