python-tmp2-pytss-2.1.0-1
This commit is contained in:
parent
c88d910eb3
commit
67135aa5ad
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
/tpm2-pytss-1.2.0.tar.gz
|
||||
/tpm2-pytss-2.1.0.tar.gz
|
||||
|
@ -4,9 +4,38 @@ diff -up tpm2-pytss-1.2.0/test/test_crypto.py.old tpm2-pytss-1.2.0/test/test_cry
|
||||
@@ -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)
|
||||
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
|
||||
|
||||
diff -up tpm2-pytss-2.1.0/test/test_policy.py.old tpm2-pytss-2.1.0/test/test_policy.py
|
||||
--- tpm2-pytss-2.1.0/test/test_policy.py.old 2023-08-07 18:42:18.825991709 +0200
|
||||
+++ tpm2-pytss-2.1.0/test/test_policy.py 2023-08-07 18:42:38.690410796 +0200
|
||||
@@ -2,6 +2,7 @@
|
||||
# SPDX-License-Identifier: BSD-2
|
||||
|
||||
import unittest
|
||||
+import pytest
|
||||
import textwrap
|
||||
import json
|
||||
from tpm2_pytss import *
|
||||
@@ -521,6 +522,7 @@ class TestPolicy(TSS2_EsapiTest):
|
||||
p.execute(self.ectx, session)
|
||||
self.assertEqual(str(e.exception), "callback exception")
|
||||
|
||||
+ @pytest.mark.skip(reason="Fedora does not support P192v1 curve")
|
||||
def test_exec_sign_callback(self):
|
||||
private_key = textwrap.dedent(
|
||||
"""
|
||||
@@ -593,6 +595,7 @@ class TestPolicy(TSS2_EsapiTest):
|
||||
p.execute(self.ectx, session)
|
||||
self.assertEqual(str(e.exception), "callback exception")
|
||||
|
||||
+ @pytest.mark.skip(reason="Fedora does not support P192v1 curve")
|
||||
def test_exec_polauth_callback(self):
|
||||
private_key = textwrap.dedent(
|
||||
"""
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
%global _name tpm2_pytss
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 1.2.0
|
||||
Release: 4%{?dist}
|
||||
Version: 2.1.0
|
||||
Release: 1%{?dist}
|
||||
Summary: TPM 2.0 TSS Bindings for Python
|
||||
|
||||
License: BSD-2-Clause
|
||||
@ -68,6 +68,9 @@ Summary: %{summary}
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 07 2023 Jakub Jelen <jjelen@redhat.com> - 2.1.0-1
|
||||
- New upstream release (#2149103)
|
||||
|
||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (tpm2-pytss-1.2.0.tar.gz) = 688223d05a2ed5f3a5aeec47c77a02c10d40d4f23a97622e76acbf8f86b14ac2a92482869c5e04de395edb96b1e1b142c5ff53c7dbc97673ead531e4d6138184
|
||||
SHA512 (tpm2-pytss-2.1.0.tar.gz) = b4d8b3a0124e67278f08ff72d3635221e84ae26b6a5489ee159e641931aa9045b4b5111ed02d5ff86d69bd89b8460b2592a3fdb94742562351e41783c78184ba
|
||||
|
Loading…
Reference in New Issue
Block a user