Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: update_metadata.proto

Issue 3132033: AU: Sign delta payloads (Closed) Base URL: ssh://git@chromiumos-git/update_engine.git
Patch Set: fixes for review Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « payload_signer_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Update file format: A delta update file contains all the deltas needed 5 // Update file format: A delta update file contains all the deltas needed
6 // to update a system from one specific version to another specific 6 // to update a system from one specific version to another specific
7 // version. The update format is represented by this struct pseudocode: 7 // version. The update format is represented by this struct pseudocode:
8 // struct delta_update_file { 8 // struct delta_update_file {
9 // char magic[4] = "CrAU"; 9 // char magic[4] = "CrAU";
10 // uint64 file_format_version = 1; 10 // uint64 file_format_version = 1;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // that bsdiff writes with '\0' bytes. 113 // that bsdiff writes with '\0' bytes.
114 optional uint64 dst_length = 7; 114 optional uint64 dst_length = 7;
115 } 115 }
116 repeated InstallOperation install_operations = 1; 116 repeated InstallOperation install_operations = 1;
117 repeated InstallOperation kernel_install_operations = 2; 117 repeated InstallOperation kernel_install_operations = 2;
118 118
119 // (At time of writing) usually 4096 119 // (At time of writing) usually 4096
120 optional uint32 block_size = 3 [default = 4096]; 120 optional uint32 block_size = 3 [default = 4096];
121 121
122 // If signatures are present, the offset into the blobs, generally 122 // If signatures are present, the offset into the blobs, generally
123 // tacked onto the end of the file. We use an offset rather than 123 // tacked onto the end of the file, and the length. We use an offset
124 // a bool to allow for more flexibility in future file formats. 124 // rather than a bool to allow for more flexibility in future file formats.
125 // If this is absent, it means signatures aren't supported in this 125 // If either is absent, it means signatures aren't supported in this
126 // file. 126 // file.
127 optional uint64 signatures_offset = 4; 127 optional uint64 signatures_offset = 4;
128 optional uint64 signatures_size = 5;
128 } 129 }
OLDNEW
« no previous file with comments | « payload_signer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698