Home
last modified time | relevance | path

Searched refs:checksum_algo_ (Results 1 – 4 of 4) sorted by relevance

/external/pigweed/pw_kvs/
Dentry.cc93 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()
[all …]
/external/pigweed/pw_blob_store/
Dblob_store.cc157 if (checksum_algo_ != nullptr) { in CloseWrite()
158 ConstByteSpan checksum = checksum_algo_->Finish(); in CloseWrite()
369 if (checksum_algo_ != nullptr) { in CommitToFlash()
370 checksum_algo_->Update(source.first(data_bytes)); in CommitToFlash()
481 if (checksum_algo_ == nullptr) { in ValidateChecksum()
497 checksum_algo_->Verify(as_bytes(std::span(&metadata_.checksum, 1))); in ValidateChecksum()
504 if (checksum_algo_ == nullptr) { in CalculateChecksumFromFlash()
508 checksum_algo_->Reset(); in CalculateChecksumFromFlash()
519 checksum_algo_->Update(buffer.data(), read_size); in CalculateChecksumFromFlash()
525 checksum_algo_->Finish(); in CalculateChecksumFromFlash()
/external/pigweed/pw_blob_store/public/pw_blob_store/
Dblob_store.h286 checksum_algo_(checksum_algo), in BlobStore()
443 if (checksum_algo_ != nullptr) { in ResetChecksum()
444 checksum_algo_->Reset(); in ResetChecksum()
474 kvs::ChecksumAlgorithm* const checksum_algo_; variable
/external/pigweed/pw_kvs/public/pw_kvs/internal/
Dentry.h190 checksum_algo_(format.checksum), in Entry()
220 ChecksumAlgorithm* checksum_algo_; variable