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

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