Adding verifies.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-02-04 01:44:44 +01:00
parent d9ed002af2
commit fda29e0e61
No known key found for this signature in database
GPG Key ID: C0095B7870A4CCD3
4 changed files with 16 additions and 0 deletions

View File

@ -27,6 +27,10 @@ from constants_for_test import *
import pytest
class Test_Card_Keygen(object):
def test_verify_pw3_0(self, card):
v = card.verify(3, PW3_TEST0)
assert v
def test_keygen_1(self, card):
PK_Crypto = get_PK_Crypto(card)
pk_info = card.cmd_genkey(1)

View File

@ -28,6 +28,10 @@ from constants_for_test import *
import pytest
class Test_Personalize_Reset(object):
def test_verify_pw3_0_test(self, card):
v = card.verify(3, PW3_TEST0)
assert v
def test_login_put(self, card):
r = card.cmd_put_data(0x00, 0x5e, b"")
assert r

View File

@ -28,6 +28,10 @@ from card_const import *
from constants_for_test import *
class Test_Card_PK_OPs(object):
def test_verify_pw3_0(self, card):
v = card.verify(3, PW3_TEST0)
assert v
def test_sign_0(self, card):
test_vector = get_test_vector(card)
key = get_key(card)

View File

@ -28,6 +28,10 @@ from card_const import *
from constants_for_test import *
class Test_Card_PK_OPs_KG(object):
def test_verify_pw3_0(self, card):
v = card.verify(3, PW3_TEST0)
assert v
def test_signature_sigkey(self, card):
test_vector = get_test_vector(card)
PK_Crypto = get_PK_Crypto(card)