Home
last modified time | relevance | path

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

/system/core/fs_mgr/libsnapshot/
Dcow_writer.cpp98 footer_ = {}; in SetupHeaders()
99 footer_.op.data_length = 64; in SetupHeaders()
100 footer_.op.type = kCowFooterOp; in SetupHeaders()
241 footer_.op.num_ops = 0; in OpenForAppend()
402 auto continue_num_ops = footer_.op.num_ops; in Finalize()
427 footer_.op.ops_size = ops_.size(); in Finalize()
432 memset(&footer_.data.ops_checksum, 0, sizeof(uint8_t) * 32); in Finalize()
433 memset(&footer_.data.footer_checksum, 0, sizeof(uint8_t) * 32); in Finalize()
435 SHA256(ops_.data(), ops_.size(), footer_.data.ops_checksum); in Finalize()
436 SHA256(&footer_.op, sizeof(footer_.op), footer_.data.footer_checksum); in Finalize()
[all …]
Dcow_reader.cpp187 footer_.emplace(); in ParseOps()
188 CowFooter* footer = &footer_.value(); in ParseOps()
189 memcpy(&footer_->op, &current_op, sizeof(footer->op)); in ParseOps()
231 } else if (!footer_) { in ParseOps()
239 if (footer_) { in ParseOps()
240 if (ops_buffer->size() != footer_->op.num_ops) { in ParseOps()
241 LOG(ERROR) << "num ops does not match, expected " << footer_->op.num_ops << ", found " in ParseOps()
245 if (ops_buffer->size() * sizeof(CowOperation) != footer_->op.ops_size) { in ParseOps()
249 SHA256(&footer_->op, sizeof(footer_->op), footer_->data.footer_checksum); in ParseOps()
250 if (memcmp(csum, footer_->data.ops_checksum, sizeof(csum)) != 0) { in ParseOps()
[all …]
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dcow_reader.h162 std::optional<CowFooter> footer_; variable
Dcow_writer.h139 CowFooter footer_{};