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

Issue 661353: Vboot Reference: Refactor Code. (Closed)

Created:
10 years, 9 months ago by gauravsh
Modified:
9 years, 6 months ago
Reviewers:
sosa
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

Vboot Reference: Refactor Code. This CL does the following: 1) It adds a SignatureBuf function which uses the OpenSSL library to generate RSA signature. This is more robust than the previous way of invoking the command line "openssl" utility and capturing its output. No more unnecessary temporary files for signature operations. 2) It adds functions that allow direct manipulation of binary verified Firmware and Kernel Image blobs in memory. 3) It changes the structure field members for FirmwareImage to make it consistent with KernelImage. Now it's clearer which key is used when. 4) Minor bug fixes and slightly improved API for dealing verified boot firmware and kernel images. 5) Renames the RSA_verify function to prevent conflicts with OpenSSL since it's linked into the firmware utility binary.

Patch Set 1 #

Total comments: 40

Patch Set 2 : Review Fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+649 lines, -464 lines) Patch
M src/platform/vboot_reference/common/utility_stub.c View 1 1 chunk +12 lines, -3 lines 0 comments Download
M src/platform/vboot_reference/crypto/rsa.c View 1 1 chunk +5 lines, -5 lines 0 comments Download
M src/platform/vboot_reference/crypto/rsa_utility.c View 1 chunk +1 line, -1 line 0 comments Download
M src/platform/vboot_reference/include/firmware_image.h View 3 chunks +26 lines, -16 lines 0 comments Download
M src/platform/vboot_reference/include/firmware_utility.h View 1 chunk +4 lines, -4 lines 0 comments Download
M src/platform/vboot_reference/include/kernel_image.h View 1 2 chunks +20 lines, -11 lines 0 comments Download
M src/platform/vboot_reference/include/rsa.h View 1 chunk +1 line, -1 line 0 comments Download
M src/platform/vboot_reference/include/signature_digest.h View 1 chunk +19 lines, -0 lines 0 comments Download
M src/platform/vboot_reference/include/utility.h View 2 chunks +10 lines, -1 line 0 comments Download
M src/platform/vboot_reference/tests/Makefile View 1 chunk +11 lines, -11 lines 0 comments Download
M src/platform/vboot_reference/tests/firmware_image_tests.c View 7 chunks +27 lines, -38 lines 0 comments Download
M src/platform/vboot_reference/tests/kernel_image_tests.c View 2 chunks +3 lines, -14 lines 0 comments Download
M src/platform/vboot_reference/tests/rsa_padding_test.c View 1 chunk +2 lines, -2 lines 0 comments Download
M src/platform/vboot_reference/tests/rsa_verify_benchmark.c View 1 chunk +1 line, -1 line 0 comments Download
M src/platform/vboot_reference/utils/Makefile View 2 chunks +13 lines, -15 lines 0 comments Download
M src/platform/vboot_reference/utils/file_keys.c View 1 chunk +1 line, -0 lines 0 comments Download
M src/platform/vboot_reference/utils/firmware_image.c View 1 21 chunks +220 lines, -147 lines 0 comments Download
M src/platform/vboot_reference/utils/firmware_utility.cc View 1 8 chunks +41 lines, -40 lines 0 comments Download
M src/platform/vboot_reference/utils/kernel_image.c View 1 9 chunks +172 lines, -99 lines 0 comments Download
M src/platform/vboot_reference/utils/signature_digest.c View 1 2 chunks +46 lines, -40 lines 0 comments Download
M src/platform/vboot_reference/utils/verify_data.c View 1 1 chunk +14 lines, -15 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
gauravsh
This review might seem big, but it's mostly a lot of refactoring. Let me know ...
10 years, 9 months ago (2010-03-02 04:23:04 UTC) #1
sosa
http://codereview.chromium.org/661353/diff/1/2 File src/platform/vboot_reference/common/utility_stub.c (right): http://codereview.chromium.org/661353/diff/1/2#newcode63 src/platform/vboot_reference/common/utility_stub.c:63: state->remaining_len = -1; return NULL; ? http://codereview.chromium.org/661353/diff/1/3 File src/platform/vboot_reference/crypto/rsa.c ...
10 years, 9 months ago (2010-03-02 05:03:07 UTC) #2
gauravsh
http://codereview.chromium.org/661353/diff/1/2 File src/platform/vboot_reference/common/utility_stub.c (right): http://codereview.chromium.org/661353/diff/1/2#newcode63 src/platform/vboot_reference/common/utility_stub.c:63: state->remaining_len = -1; On 2010/03/02 05:03:07, sosa wrote: > ...
10 years, 9 months ago (2010-03-02 08:53:23 UTC) #3
sosa
10 years, 9 months ago (2010-03-02 20:22:14 UTC) #4
lgtm

Powered by Google App Engine
This is Rietveld 408576698