Lines Matching refs:checksum_algo_
93 if (checksum_algo_ != nullptr) {
112 checksum_algo_ = new_format.checksum; in Update()
190 if (checksum_algo_ == nullptr) { in VerifyChecksum()
194 return checksum_algo_->Verify(checksum_bytes()); in VerifyChecksum()
220 if (checksum_algo_ == nullptr) { in VerifyChecksumInFlash()
227 checksum_algo_->Reset(); in VerifyChecksumInFlash()
231 checksum_algo_->Update(buffer, read_size); in VerifyChecksumInFlash()
244 checksum_algo_->Finish(); in VerifyChecksumInFlash()
245 return checksum_algo_->Verify(checksum_bytes()); in VerifyChecksumInFlash()
262 checksum_algo_->Reset(); in CalculateChecksum()
268 checksum_algo_->Update(&header_for_checksum, sizeof(header_for_checksum)); in CalculateChecksum()
269 checksum_algo_->Update(std::as_bytes(std::span(key))); in CalculateChecksum()
270 checksum_algo_->Update(value); in CalculateChecksum()
275 return checksum_algo_->Finish(); in CalculateChecksum()
281 if (checksum_algo_ == nullptr) { in CalculateChecksumFromFlash()
285 checksum_algo_->Reset(); in CalculateChecksumFromFlash()
286 checksum_algo_->Update(&header_, sizeof(header_)); in CalculateChecksumFromFlash()
298 checksum_algo_->Update(buffer.data(), read_size); in CalculateChecksumFromFlash()
304 std::span checksum = checksum_algo_->Finish(); in CalculateChecksumFromFlash()
317 checksum_algo_->Update(padding, chunk_size); in AddPaddingBytesToChecksum()