Blame SOURCES/0001-tpm2_alg_util.c-fix-a-bug-where-the-string-rsa3072-w.patch

fbce52
From c28932caef2036039901a91cf55eb7ff093c70f5 Mon Sep 17 00:00:00 2001
fbce52
From: Imran Desai <imran.desai@intel.com>
fbce52
Date: Fri, 24 Jan 2020 15:53:39 -0700
fbce52
Subject: [PATCH] tpm2_alg_util.c: fix a bug where the string rsa3072 wasnt
fbce52
 being parsed
fbce52
fbce52
Signed-off-by: Imran Desai <imran.desai@intel.com>
fbce52
---
fbce52
 lib/tpm2_alg_util.c | 3 +++
fbce52
 1 file changed, 3 insertions(+)
fbce52
fbce52
diff --git a/lib/tpm2_alg_util.c b/lib/tpm2_alg_util.c
fbce52
index b83c387a05bd..fcad480e0c3d 100644
fbce52
--- a/lib/tpm2_alg_util.c
fbce52
+++ b/lib/tpm2_alg_util.c
fbce52
@@ -301,6 +301,9 @@ static alg_parser_rc handle_rsa(const char *ext, TPM2B_PUBLIC *public) {
fbce52
     } else if (!strncmp(ext, "4096", 4)) {
fbce52
         r->keyBits = 4096;
fbce52
         ext += 4;
fbce52
+    } else if (!strncmp(ext, "3072", 4)) {
fbce52
+        r->keyBits = 3072;
fbce52
+        ext += 4;
fbce52
     } else {
fbce52
         r->keyBits = 2048;
fbce52
     }
fbce52
-- 
fbce52
2.27.0
fbce52