Home
last modified time | relevance | path

Searched refs:hashLen (Results 1 – 11 of 11) sorted by relevance

/base/update/sys_installer_lite/frameworks/source/verify/
Dhota_verify.c74 static int32 HotaCalcImageHash(uint8 *dataAddr, uint32 dataLen, uint8 *hash, uint32 hashLen) in HotaCalcImageHash() argument
79 if ((dataAddr == NULL) || (hash == NULL) || (dataLen == 0) || (hashLen < HASH_LENGTH)) { in HotaCalcImageHash()
85 if (memset_s(hash, hashLen, 0, hashLen) != EOK) { in HotaCalcImageHash()
103 static int32 HotaSignVerifyByHash(const uint8 *hash, uint32 hashLen, const uint8 *imageSign, uint32… in HotaSignVerifyByHash() argument
122 ret = AppVerifyData(&rsa, hash, hashLen, imageSign, signLen); in HotaSignVerifyByHash()
/base/update/sys_installer_lite/frameworks/test/unittest/common/src/
Dota_test.cpp302 static int HotaCalcImageHash(uint8 *dataAddr, uint32 dataLen, uint8 *hash, uint32 hashLen) in HotaCalcImageHash() argument
307 if ((dataAddr == nullptr) || (hash == nullptr) || (dataLen == 0) || (hashLen < HASH_LENGTH)) { in HotaCalcImageHash()
312 if (memset_s(hash, hashLen, 0, hashLen) != EOK) { in HotaCalcImageHash()
/base/security/appverify/interfaces/innerkits/appverify_lite/include/
Dmbedtls_pkcs7.h192 mbedtls_md_type_t algType, unsigned char *hash, size_t *hashLen);
/base/update/updater/services/package/pkg_algorithm/
Dpkg_algo_sign.h37 int hashLen; member
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/small/
Dmbedtls_ec_adapter.c149 …32_t CalTmpParab(mbedtls_mpi *tmpX, const mbedtls_mpi *modP, const uint8_t *hash, uint32_t hashLen) in CalTmpParab() argument
170 status = mbedtls_mpi_read_binary(&tmpBnA, hash, hashLen); in CalTmpParab()
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dapp_verify.c252 mbedtls_md_type_t algType, unsigned char *hash, size_t *hashLen) in CalcCmpContHash() argument
267 *hashLen = mbedtls_md_get_size(mbedtls_md_info_from_type(algType)); in CalcCmpContHash()
277 if (digInAttrLen != *hashLen) { in CalcCmpContHash()
289 mbedtls_md_type_t algType, unsigned char *hash, size_t *hashLen) in CalcDigest() argument
294 rc = CalcCmpContHash(pkcs7, signer, algType, hash, hashLen); in CalcDigest()
312 *hashLen = mbedtls_md_get_size(mbedtls_md_info_from_type(algType)); in CalcDigest()
Dmbedtls_pkcs7.c892 size_t hashLen = 0; in PKCS7_VerifySignerSignature() local
893 rc = calcDigest(pkcs7, signer, digAlg, hash, &hashLen); in PKCS7_VerifySignerSignature()
902 rc = mbedtls_pk_verify(pk, digAlg, hash, hashLen, sig, sigLen); in PKCS7_VerifySignerSignature()
/base/hiviewdfx/hiview/core/
Devent_json_parser.cpp56 size_t hashLen = (infoLen < infoLenLimit) ? infoLen : infoLenLimit; in GenerateHash() local
58 while (i < hashLen) { in GenerateHash()
/base/security/device_auth/services/group_manager/inc/
Dgroup_operation_common.h88 int32_t GetHashResult(const uint8_t *info, uint32_t infoLen, char *hash, uint32_t hashLen);
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
Ddlp_crypt.cpp775 uint32_t hashLen = GetHashLen(alg); in HashCheckParam() local
776 if (hash->size < hashLen) { in HashCheckParam()
/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation_common.c1202 int32_t GetHashResult(const uint8_t *info, uint32_t infoLen, char *hash, uint32_t hashLen) in GetHashResult() argument
1229 if (ByteToHexString(infoHash.val, infoHash.length, hash, hashLen) != HAL_SUCCESS) { in GetHashResult()