Blame SOURCES/0001-esys-fix-keysize-of-ECC-curve-TPM2_ECC_NISTP224.patch

b9d646
From 76641c1e6b016979973fead7a24bb8fca4ee8325 Mon Sep 17 00:00:00 2001
b9d646
From: Johannes Holland <johannes.holland@infineon.com>
b9d646
Date: Thu, 26 Sep 2019 09:46:09 +0100
b9d646
Subject: [PATCH] esys: fix keysize of ECC curve TPM2_ECC_NISTP224
b9d646
b9d646
In esys_crypto_ossl.c, for the ECC curve TPM2_ECC_NISTP244 a key size of
b9d646
38 is selected. However, 224 bit / 8 bit/byte = 28 byte.
b9d646
b9d646
Signed-off-by: Johannes Holland <johannes.holland@infineon.com>
b9d646
---
b9d646
 src/tss2-esys/esys_crypto_ossl.c | 2 +-
b9d646
 1 file changed, 1 insertion(+), 1 deletion(-)
b9d646
b9d646
diff --git a/src/tss2-esys/esys_crypto_ossl.c b/src/tss2-esys/esys_crypto_ossl.c
b9d646
index 124501964ae7..3c5d86d69705 100644
b9d646
--- a/src/tss2-esys/esys_crypto_ossl.c
b9d646
+++ b/src/tss2-esys/esys_crypto_ossl.c
b9d646
@@ -804,7 +804,7 @@ iesys_cryptossl_get_ecdh_point(TPM2B_PUBLIC *key,
b9d646
         break;
b9d646
     case TPM2_ECC_NIST_P224:
b9d646
         curveId = NID_secp224r1;
b9d646
-        key_size = 38;
b9d646
+        key_size = 28;
b9d646
         break;
b9d646
     case TPM2_ECC_NIST_P256:
b9d646
         curveId = NID_X9_62_prime256v1;
b9d646
-- 
b9d646
2.27.0
b9d646