Home
last modified time | relevance | path

Searched refs:digestParam (Results 1 – 21 of 21) sorted by relevance

/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_test_curve25519.c51 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 …]
Dhks_test_common.c126 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/
Dhks_test_curve25519.c53 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 …]
Dhks_test_common.c129 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/
Dhap_signing_block_utils.cpp437 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/
Dhap_byte_buffer_data_source.cpp46 bool HapByteBufferDataSource::ReadDataAndDigestUpdate(const DigestParameter& digestParam, int32_t c… in ReadDataAndDigestUpdate() argument
50 bool res = HapVerifyOpensslUtils::DigestUpdate(digestParam, chunk, chunkSize); in ReadDataAndDigestUpdate()
Dhap_file_data_source.cpp48 bool HapFileDataSource::ReadDataAndDigestUpdate(const DigestParameter& digestParam, int32_t chunkSi… in ReadDataAndDigestUpdate() argument
50 …if (!hapFileRandomAccess.ReadFileFromOffsetAndDigestUpdate(digestParam, chunkSize, fileOffset + so… in ReadDataAndDigestUpdate()
Drandom_access_file.cpp145 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/
Dhap_signing_block_utils.h98 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/
Ddata_source.h30 virtual bool ReadDataAndDigestUpdate(const DigestParameter& digestParam, int32_t chunkSize) = 0;
Dhap_byte_buffer_data_source.h33 bool ReadDataAndDigestUpdate(const DigestParameter& digestParam, int32_t chunkSize) override;
Dhap_file_data_source.h32 bool ReadDataAndDigestUpdate(const DigestParameter& digestParam, int32_t chunkSize) override;
Drandom_access_file.h40 …bool ReadFileFromOffsetAndDigestUpdate(const DigestParameter& digestParam, int32_t chunkSize, long…
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_core_service.c360 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 …]
Dhks_core_service_three_stage.c518 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/
Dhap_signing_block_utils_test.cpp318 DigestParameter digestParam = hapSignBlockUtils.GetDigestParameter(nid); variable
319 …ret = hapSignBlockUtils.ComputeDigestsWithOptionalBlock(digestParam, optionalBlocks, chunkDigest, …
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_check_paramset.c274 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/
Dhuks_adapter.c122 struct HksParam digestParam[] = { in Sha256() local
128 int32_t res = ConstructParamSet(&paramSet, digestParam, CAL_ARRAY_SIZE(digestParam)); in Sha256()
/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_storage_lite.c52 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/
Dhuks_adapter.c102 struct HksParam digestParam[] = { in Sha256() local
108 int32_t res = ConstructParamSet(&paramSet, digestParam, CAL_ARRAY_SIZE(digestParam)); in Sha256()
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/standard/
Dhuks_adapter.c104 struct HksParam digestParam[] = { in Sha256() local
110 int32_t res = ConstructParamSet(&paramSet, digestParam, CAL_ARRAY_SIZE(digestParam)); in Sha256()