Lines Matching refs:algorithm
183 updateInfo_.algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(PKG_DIGEST_TYPE_SHA256); in UpdateBinHash()
184 if (updateInfo_.algorithm == nullptr) { in UpdateBinHash()
188 updateInfo_.algorithm->Init(); in UpdateBinHash()
245 updateInfo_.algorithm->Update({data + offset, sizeof(PkgTlvHH)}, sizeof(PkgTlvHH)); in ProcessPartitionNum()
257 updateInfo_.algorithm->Update({data + offset, tlv.length}, tlv.length); in ProcessPartitionNum()
277 updateInfo_.algorithm->Update({data + offset, sizeof(PkgTlvHH)}, sizeof(PkgTlvHH)); in ProcessPartitionData()
283 updateInfo_.algorithm->Update({data + offset, tlv.length}, tlv.length); in ProcessPartitionData()
341 updateInfo_.algorithm->Update({data + offset, sizeof(PkgTlvHH)}, sizeof(PkgTlvHH)); in ReadHash()
351 updateInfo_.algorithm->Update({data + offset, tlv.length}, tlv.length); in ReadHash()
370 updateInfo_.algorithm->Update({data + offset, sizeof(PkgTlvHH)}, sizeof(PkgTlvHH)); in ReadDataLength()
380 updateInfo_.algorithm->Update({data + offset, tlv.length}, tlv.length); in ReadDataLength()
392 updateInfo_.algorithm->Final(digest); in VerifySignature()