/base/update/sys_installer_lite/frameworks/source/verify/ |
D | hota_verify.c | 74 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/ |
D | ota_test.cpp | 302 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/ |
D | mbedtls_pkcs7.h | 192 mbedtls_md_type_t algType, unsigned char *hash, size_t *hashLen);
|
/base/update/updater/services/package/pkg_algorithm/ |
D | pkg_algo_sign.h | 37 int hashLen; member
|
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/small/ |
D | mbedtls_ec_adapter.c | 149 …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/ |
D | app_verify.c | 252 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()
|
D | mbedtls_pkcs7.c | 892 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/ |
D | event_json_parser.cpp | 56 size_t hashLen = (infoLen < infoLenLimit) ? infoLen : infoLenLimit; in GenerateHash() local 58 while (i < hashLen) { in GenerateHash()
|
/base/security/device_auth/services/group_manager/inc/ |
D | group_operation_common.h | 88 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/ |
D | dlp_crypt.cpp | 775 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/ |
D | group_operation_common.c | 1202 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()
|