Home
last modified time | relevance | path

Searched refs:signatureSize (Results 1 – 5 of 5) sorted by relevance

/base/update/updater/services/package/pkg_verify/
Dpkg_verify_util.cpp38 size_t signatureSize = 0; in VerifyPackageSign() local
41 if (GetSignature(pkgStream, signatureSize, signature, commentTotalLenAll) != PKG_SUCCESS) { in VerifyPackageSign()
58 srcDataLen = pkgStream->GetFileLength() - signatureSize - ZIP_EOCD_FIXED_PART_LEN; in VerifyPackageSign()
64 int32_t PkgVerifyUtil::GetSignature(const PkgStreamPtr pkgStream, size_t &signatureSize, in GetSignature() argument
68 int32_t ret = ParsePackage(pkgStream, signatureStart, signatureSize, commentTotalLenAll); in GetSignature()
69 if (ret != PKG_SUCCESS || signatureSize < PKG_FOOTER_SIZE) { in GetSignature()
75 size_t signDataLen = signatureSize - PKG_FOOTER_SIZE; in GetSignature()
87 if (fileLen < (signatureSize + ZIP_EOCD_FIXED_PART_LEN)) { in GetSignature()
88 PKG_LOGE("Invalid fileLen[%zu] and signature size[%zu]", fileLen, signatureSize); in GetSignature()
89 UPDATER_LAST_WORD(PKG_INVALID_PARAM, fileLen, signatureSize); in GetSignature()
[all …]
Dpkg_verify_util.h32 int32_t GetSignature(const PkgStreamPtr pkgStream, size_t &signatureSize,
41 size_t &signatureSize, uint16_t &commentTotalLenAll) const;
Dhash_data_verifier.cpp112 size_t signatureSize = 0; in LoadPkcs7FromPackage() local
116 signatureSize, signature, commentTotalLenAll); in LoadPkcs7FromPackage()
/base/security/code_signature/utils/src/
Dsigner_info.cpp141 uint32_t signatureSize = signature.GetSize(); in AddSignatureInSignerInfo() local
143 if (signatureSize == 0 || signatureSize > MAX_SIGNATURE_SIZE) { in AddSignatureInSignerInfo()
146 uint8_t *tmp = static_cast<uint8_t *>(malloc(signatureSize)); in AddSignatureInSignerInfo()
150 (void)memcpy_s(tmp, signatureSize, signature.GetBuffer(), signatureSize); in AddSignatureInSignerInfo()
151 ASN1_STRING_set0(p7info_->enc_digest, tmp, signatureSize); in AddSignatureInSignerInfo()
/base/security/code_signature/interfaces/innerkits/code_sign_utils/src/
Dcode_sign_utils.cpp91 size_t signatureSize; in EnforceCodeSignForApp() local
92 …NOT_SATISFIED_RETURN(extractor->ExtractToBufByName(signatureEntry, signatureBuffer, signatureSize), in EnforceCodeSignForApp()
95 …NOT_SATISFIED_RETURN(signatureSize < UINT32_MAX, CS_ERR_INVALID_SIGNATURE, "Signature is too long.… in EnforceCodeSignForApp()
97 …orceCodeSignForFile(targetFile, signatureBuffer.get(), static_cast<const uint32_t>(signatureSize)); in EnforceCodeSignForApp()