Matej Cepl
e58b4efb36
tpm2-pytss contains the Python bindings to call the tpm2-tss libraries (mainly FAPI and ESAPI interfaces) OBS-URL: https://build.opensuse.org/request/show/988380 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tpm2-pytss?expand=0&rev=1
26 lines
897 B
Diff
26 lines
897 B
Diff
From b88dc903e7d304851ed651f3a9aea24656a5681c Mon Sep 17 00:00:00 2001
|
|
From: Alberto Planas <aplanas@suse.com>
|
|
Date: Mon, 11 Jul 2022 11:54:47 +0200
|
|
Subject: [PATCH 1/1] test_crypto: fix test_ecc_bad_curves assert
|
|
|
|
---
|
|
test/test_crypto.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/test/test_crypto.py b/test/test_crypto.py
|
|
index 1120c7b..f65b465 100644
|
|
--- a/test/test_crypto.py
|
|
+++ b/test/test_crypto.py
|
|
@@ -581,7 +581,7 @@ class CryptoTest(TSS2_EsapiTest):
|
|
def test_ecc_bad_curves(self):
|
|
with self.assertRaises(ValueError) as e:
|
|
pub = TPMT_PUBLIC.from_pem(ecc_bad_curve)
|
|
- self.assertEqual(str(e.exception), "unsupported curve: sect163r2")
|
|
+ self.assertEqual(str(e.exception), "Unsupported key format")
|
|
|
|
pub = TPMT_PUBLIC.from_pem(ecc_public_key)
|
|
pub.parameters.eccDetail.curveID = TPM2_ECC.NONE
|
|
--
|
|
2.36.1
|
|
|