From 438d89db8dd927ebaa4e93c2149f8ef9879168de Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 13 Mar 2025 11:05:55 +0900 Subject: [PATCH] Fix tests/card_test_kg_pko_dsc_*.py. Signed-off-by: NIIBE Yutaka --- tests/ChangeLog | 7 +++++++ tests/card_test_kg_pko_dsc_curve25519.py | 4 ++-- tests/card_test_kg_pko_dsc_curve448.py | 2 +- tests/card_test_kg_pko_dsc_nistp256r1.py | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/tests/ChangeLog b/tests/ChangeLog index 15d7472..245f70b 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,10 @@ +2025-03-13 NIIBE Yutaka + + * 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 Add tests for Ed448/X448. diff --git a/tests/card_test_kg_pko_dsc_curve25519.py b/tests/card_test_kg_pko_dsc_curve25519.py index 170e072..f012163 100644 --- a/tests/card_test_kg_pko_dsc_curve25519.py +++ b/tests/card_test_kg_pko_dsc_curve25519.py @@ -21,7 +21,7 @@ along with this program. If not, see . """ 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 * diff --git a/tests/card_test_kg_pko_dsc_curve448.py b/tests/card_test_kg_pko_dsc_curve448.py index 4b1f53c..827afcc 100644 --- a/tests/card_test_kg_pko_dsc_curve448.py +++ b/tests/card_test_kg_pko_dsc_curve448.py @@ -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 * diff --git a/tests/card_test_kg_pko_dsc_nistp256r1.py b/tests/card_test_kg_pko_dsc_nistp256r1.py index 8473138..4976783 100644 --- a/tests/card_test_kg_pko_dsc_nistp256r1.py +++ b/tests/card_test_kg_pko_dsc_nistp256r1.py @@ -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 *