diff options
author | Nicolas Boichat <drinkcat@google.com> | 2017-03-02 17:56:46 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-03-16 11:25:47 -0700 |
commit | a1c5f7c006b7bb3d5894f132f70ba3bbadfd9d6b (patch) | |
tree | 9161a2024793c2859b84418702833507a4270287 /utility | |
parent | 114ac2079ed5fafc8deb9cbf58b5af01e74432b1 (diff) | |
download | vboot-a1c5f7c006b7bb3d5894f132f70ba3bbadfd9d6b.tar.gz |
vboot_reference: Add support for 3072-bit exponent 3 keys
This also adds the required tests (keys, testcases), and some
additional tests in vb2_rsa_utility_tests.c that were not
added when 2048-bit exponent 3 support was added.
BRANCH=none
BUG=chromium:684354
TEST=make runtests
Change-Id: I56d22302c2254ef500b9d2d290a79d8c8bc39942
Reviewed-on: https://chromium-review.googlesource.com/449060
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'utility')
-rw-r--r-- | utility/dumpRSAPublicKey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utility/dumpRSAPublicKey.c b/utility/dumpRSAPublicKey.c index fc238d7f..26724d6e 100644 --- a/utility/dumpRSAPublicKey.c +++ b/utility/dumpRSAPublicKey.c @@ -29,7 +29,7 @@ int check(RSA* key) { public_exponent); } - if (modulus != 1024 && modulus != 2048 && modulus != 4096 + if (modulus != 1024 && modulus != 2048 && modulus != 3072 && modulus != 4096 && modulus != 8192) { fprintf(stderr, "ERROR: Unknown modulus length = %d.\n", modulus); return 0; |