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

Issue 3151005: Add dev_sign_file utility for developers to sign their install scripts. (Closed)

Created:
10 years, 4 months ago by Bill Richardson
Modified:
9 years, 6 months ago
Reviewers:
Randall Spangler, adlr
CC:
chromium-os-reviews_chromium.org, Randall Spangler, gauravsh, Luigi Semenzato, Bill Richardson
Base URL:
ssh://gitrw.chromium.org/vboot_reference.git
Visibility:
Public.

Description

Add dev_sign_file utility for developers to sign their install scripts. BUG=chromium-os:5306

Patch Set 1 #

Total comments: 26
Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, -1 line) Patch
M utility/Makefile View 2 chunks +5 lines, -1 line 1 comment Download
A utility/dev_sign_file.c View 1 chunk +342 lines, -0 lines 25 comments Download

Messages

Total messages: 7 (0 generated)
Bill Richardson
10 years, 4 months ago (2010-08-10 17:58:24 UTC) #1
Randall Spangler
lgtm
10 years, 4 months ago (2010-08-10 18:08:52 UTC) #2
adlr
LGTM in general. mostly nits w/ one potential 32/64 bit issue. it would be good ...
10 years, 4 months ago (2010-08-11 01:08:41 UTC) #3
gauravsh
Can you get C++ readability on C code? On Aug 10, 2010 9:09 PM, <adlr@chromium.org> ...
10 years, 4 months ago (2010-08-11 01:18:44 UTC) #4
adlr
On Tue, Aug 10, 2010 at 6:18 PM, Gaurav Shah <gauravsh@chromium.org> wrote: > Can you ...
10 years, 4 months ago (2010-08-11 03:41:18 UTC) #5
Bill Richardson
Thanks for the feedback. I'll make these changes. On Tue, Aug 10, 2010 at 8:40 ...
10 years, 4 months ago (2010-08-11 15:50:18 UTC) #6
Bill Richardson
10 years, 4 months ago (2010-08-11 18:14:47 UTC) #7
This CL is closed, so I'll address these comments in a new one.

http://codereview.chromium.org/3151005/diff/1/3
File utility/dev_sign_file.c (right):

http://codereview.chromium.org/3151005/diff/1/3#newcode50
utility/dev_sign_file.c:50: static int PrintHelp(char *progname) {
done

http://codereview.chromium.org/3151005/diff/1/3#newcode89
utility/dev_sign_file.c:89: static int Sign(const char* filename, const char*
keyblock_file,
Actually, no. It should just look nice.

http://codereview.chromium.org/3151005/diff/1/3#newcode91
utility/dev_sign_file.c:91: uint8_t *file_data;
Done

http://codereview.chromium.org/3151005/diff/1/3#newcode128
utility/dev_sign_file.c:128: preamble = CreateKernelPreamble(0UL, 0UL, 0UL, 0UL,
Ah. My bad. Thanks.

http://codereview.chromium.org/3151005/diff/1/3#newcode166
utility/dev_sign_file.c:166: uint8_t *file_data;
Done.

http://codereview.chromium.org/3151005/diff/1/3#newcode174
utility/dev_sign_file.c:174: uint64_t now = 0;
Clarified.

http://codereview.chromium.org/3151005/diff/1/3#newcode218
utility/dev_sign_file.c:218: //HEY   printf("  Signature:           %s\n",
sign_key ? "valid" : "ignored");
Yes, thanks.

http://codereview.chromium.org/3151005/diff/1/3#newcode234
utility/dev_sign_file.c:234: preamble, file_size, rsa)) {
done

http://codereview.chromium.org/3151005/diff/1/3#newcode252
utility/dev_sign_file.c:252: if (0 != VerifyData(file_data, file_size,
&preamble->body_signature,
done.

http://codereview.chromium.org/3151005/diff/1/3#newcode259
utility/dev_sign_file.c:259: // HEY
Yes, thanks.

http://codereview.chromium.org/3151005/diff/1/3#newcode271
utility/dev_sign_file.c:271: int i;
Done.

http://codereview.chromium.org/3151005/diff/1/3#newcode341
utility/dev_sign_file.c:341: return 1;
Yes, but I don't like relying on the compiler to detect that I've handled all
the possible returns. I'll put a comment here.

Powered by Google App Engine
This is Rietveld 408576698