mirror of
https://github.com/polhenarejos/pico-openpgp.git
synced 2024-09-20 03:10:10 +00:00
Adding verifies.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
d9ed002af2
commit
fda29e0e61
@ -27,6 +27,10 @@ from constants_for_test import *
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
class Test_Card_Keygen(object):
|
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):
|
def test_keygen_1(self, card):
|
||||||
PK_Crypto = get_PK_Crypto(card)
|
PK_Crypto = get_PK_Crypto(card)
|
||||||
pk_info = card.cmd_genkey(1)
|
pk_info = card.cmd_genkey(1)
|
||||||
|
@ -28,6 +28,10 @@ from constants_for_test import *
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
class Test_Personalize_Reset(object):
|
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):
|
def test_login_put(self, card):
|
||||||
r = card.cmd_put_data(0x00, 0x5e, b"")
|
r = card.cmd_put_data(0x00, 0x5e, b"")
|
||||||
assert r
|
assert r
|
||||||
|
@ -28,6 +28,10 @@ from card_const import *
|
|||||||
from constants_for_test import *
|
from constants_for_test import *
|
||||||
|
|
||||||
class Test_Card_PK_OPs(object):
|
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):
|
def test_sign_0(self, card):
|
||||||
test_vector = get_test_vector(card)
|
test_vector = get_test_vector(card)
|
||||||
key = get_key(card)
|
key = get_key(card)
|
||||||
|
@ -28,6 +28,10 @@ from card_const import *
|
|||||||
from constants_for_test import *
|
from constants_for_test import *
|
||||||
|
|
||||||
class Test_Card_PK_OPs_KG(object):
|
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):
|
def test_signature_sigkey(self, card):
|
||||||
test_vector = get_test_vector(card)
|
test_vector = get_test_vector(card)
|
||||||
PK_Crypto = get_PK_Crypto(card)
|
PK_Crypto = get_PK_Crypto(card)
|
||||||
|
Loading…
Reference in New Issue
Block a user