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

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