Fix tests/card_test_kg_pko_dsc_*.py.

Signed-off-by: NIIBE Yutaka <[email protected]>
This commit is contained in:
NIIBE Yutaka
2025-03-13 11:13:57 +09:00
parent 00f55039c9
commit 438d89db8d
4 changed files with 11 additions and 4 deletions
+7
View File
@@ -1,3 +1,10 @@
2025-03-13 NIIBE Yutaka <[email protected]>
* card_test_kg_pko_dsc_nistp256r1.py (pk): Fix the message.
* card_test_kg_pko_dsc_curve448.py (pk): Likewise.
* card_test_kg_pko_dsc_curve25519.py (pk): Likewise. Fix the
attribute to distinguish.
2025-03-13 NIIBE Yutaka <[email protected]>
Add tests for Ed448/X448.
+2 -2
View File
@@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import pytest
from card_const import KEY_ATTRIBUTES_CV25519
from card_const import KEY_ATTRIBUTES_ED25519
from keys_curve25519 import curve25519_pk
@pytest.fixture(scope="module",autouse=True)
@@ -31,7 +31,7 @@ def check_curve25519(card):
@pytest.fixture(scope="module")
def pk(card):
print("Select Ed25519/Cv25519 for testing key import")
print("Select Ed25519/Cv25519 for testing key generation")
return curve25519_pk
from card_test_0_set_attr import *
+1 -1
View File
@@ -31,7 +31,7 @@ def check_curve448(card):
@pytest.fixture(scope="module")
def pk(card):
print("Select Ed448/X448 for testing key import")
print("Select Ed448/X448 for testing key generation")
return curve448_pk
from card_test_0_set_attr import *
+1 -1
View File
@@ -31,7 +31,7 @@ def check_nistp256r1(card):
@pytest.fixture(scope="module")
def pk(card):
print("Select NIST P-256 for testing key import")
print("Select NIST P-256 for testing key generation")
return nistp256r1_pk
from card_test_0_set_attr import *