mirror of
git://git.gniibe.org/gnuk/gnuk.git
synced 2026-11-20 18:51:25 +00:00
Fix tests/card_test_kg_pko_dsc_*.py.
Signed-off-by: NIIBE Yutaka <[email protected]>
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 *
|
||||
|
||||
@@ -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 *
|
||||
|
||||
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user