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 /host | |
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 'host')
-rw-r--r-- | host/lib21/host_key.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/host/lib21/host_key.c b/host/lib21/host_key.c index be36df71..4f82d10c 100644 --- a/host/lib21/host_key.c +++ b/host/lib21/host_key.c @@ -24,6 +24,7 @@ const struct vb2_text_vs_enum vb2_text_vs_sig[] = { {"RSA4096", VB2_SIG_RSA4096}, {"RSA8192", VB2_SIG_RSA8192}, {"RSA2048EXP3", VB2_SIG_RSA2048_EXP3}, + {"RSA3072EXP3", VB2_SIG_RSA3072_EXP3}, {0, 0} }; @@ -572,6 +573,8 @@ enum vb2_signature_algorithm vb2_rsa_sig_alg(struct rsa_st *rsa) switch (bits) { case 2048: return VB2_SIG_RSA2048_EXP3; + case 3072: + return VB2_SIG_RSA3072_EXP3; } break; case RSA_F4: |