Home
last modified time | relevance | path

Searched refs:digestBlock (Results 1 - 2 of 2) sorted by relevance

/base/update/updater/services/package/pkg_verify/
H A Dpkcs7_signed_data.h58 virtual int32_t GetDigestFromSubBlocks(std::vector<uint8_t> &digestBlock,
83 int32_t GetDigest(std::vector<uint8_t> &digestBlock,
90 int32_t ParseContentInfo(std::vector<uint8_t> &digestBlock) const;
91 int32_t GetDigestFromContentInfo(std::vector<uint8_t> &digestBlock);
92 int32_t DoUpdateVerify(std::vector<uint8_t> &digestBlock);
113 int32_t GetDigestFromSubBlocks(std::vector<uint8_t> &digestBlock,
H A Dpkcs7_signed_data.cpp206 int32_t Pkcs7SignedData::ParseContentInfo(std::vector<uint8_t> &digestBlock) const in ParseContentInfo()
228 if (GetASN1OctetStringData(contentInfo->d.data, digestBlock) != 0) { in ParseContentInfo()
237 int32_t Pkcs7SignedData::GetDigestFromContentInfo(std::vector<uint8_t> &digestBlock) in GetDigestFromContentInfo() argument
240 if (digestBlock.size() <= sizeof(uint32_t)) { in GetDigestFromContentInfo()
247 size_t algoId = static_cast<size_t>(ReadLE16(digestBlock.data() + offset)); in GetDigestFromContentInfo()
249 size_t digestLen = static_cast<size_t>(ReadLE16(digestBlock.data() + offset)); in GetDigestFromContentInfo()
251 if ((GetDigestLength(algoId) != digestLen) || ((digestLen + offset) != digestBlock.size())) { in GetDigestFromContentInfo()
252 PKG_LOGE("invalid digestLen[%zu] and digestBlock len[%zu]", digestLen, digestBlock.size()); in GetDigestFromContentInfo()
256 digest_.assign(digestBlock in GetDigestFromContentInfo()
281 GetDigestFromSubBlocks(std::vector<uint8_t> &digestBlock, HwSigningSigntureInfo &signatureInfo, std::vector<uint8_t> &digest) GetDigestFromSubBlocks() argument
288 GetDigest(std::vector<uint8_t> &digestBlock, HwSigningSigntureInfo &signatureInfo, std::vector<uint8_t> &digest) GetDigest() argument
[all...]

Completed in 1 milliseconds