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

Issue 3175010: AU: Support signatures in new-style update images. (Closed)

Created:
10 years, 4 months ago by adlr
Modified:
9 years ago
Reviewers:
petkov
CC:
chromium-os-reviews_chromium.org, petkov, adlr, Sumit
Base URL:
ssh://git@chromiumos-git/update_engine.git
Visibility:
Public.

Description

AU: Support signatures in new-style update images. I'm sending this CL out as a first step to supporting signatures in the images. BUG=5673 TEST=None

Patch Set 1 #

Patch Set 2 : don't put signatures length in signed protobuf #

Total comments: 1

Patch Set 3 : fix comments #

Patch Set 4 : more comment fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -0 lines) Patch
M update_metadata.proto View 1 2 3 3 chunks +31 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
adlr
10 years, 4 months ago (2010-08-13 04:38:10 UTC) #1
adlr
[+cc: sumit]
10 years, 4 months ago (2010-08-13 04:38:29 UTC) #2
petkov
LGTM
10 years, 4 months ago (2010-08-13 16:14:47 UTC) #3
adlr
I've moved the length out of the signed protobuf. This is because we may not ...
10 years, 4 months ago (2010-08-16 21:20:14 UTC) #4
petkov
LGTM w/ a question. http://codereview.chromium.org/3175010/diff/5001/6001 File update_metadata.proto (right): http://codereview.chromium.org/3175010/diff/5001/6001#newcode122 update_metadata.proto:122: optional uint64 signatures_offset = 4; ...
10 years, 4 months ago (2010-08-16 21:42:54 UTC) #5
adlr
10 years, 4 months ago (2010-08-16 21:57:00 UTC) #6
It's optional, so if the tag isn't present, it would mean no signature
possible. If it's there, it means a signature may be there.

The advantage of having a length over a boolean is we can choose where the
client looks for the signature, as opposed to hard-coding in that it always
looks at the end. This way we could potentially tack other things onto the
end later.

I'll add comments in to address these questions and submit.

Thanks,
-andrew

On Mon, Aug 16, 2010 at 2:42 PM, <petkov@chromium.org> wrote:

> LGTM w/ a question.
>
>
>
> http://codereview.chromium.org/3175010/diff/5001/6001
> File update_metadata.proto (right):
>
> http://codereview.chromium.org/3175010/diff/5001/6001#newcode122
> update_metadata.proto:122: optional uint64 signatures_offset = 4;
> Theoretically, this could be a boolean, right? Present/not present. Do
> you need to document what value specifies that signatures are not
> present?
>
>
> http://codereview.chromium.org/3175010/show
>

Powered by Google App Engine
This is Rietveld 408576698