Adding tests for OpenPGP.
All tests are taken from gnuk. Reader is migrated from pyusb to pyscard. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
13
tests/card_test_ki_pko_dsc_rsa4k.py
Normal file
13
tests/card_test_ki_pko_dsc_rsa4k.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import pytest
|
||||
from card_const import KEY_ATTRIBUTES_RSA4K
|
||||
|
||||
@pytest.fixture(scope="module",autouse=True)
|
||||
def check_rsa4k(card):
|
||||
print("RSA-4096 key import")
|
||||
if not KEY_ATTRIBUTES_RSA4K in card.supported_key_attrlist[0]:
|
||||
pytest.skip("Test for RSA-4096", allow_module_level=True)
|
||||
|
||||
from card_test_0_set_attr_rsa4k import *
|
||||
from card_test_1_import_keys import *
|
||||
from card_test_2_pkop import *
|
||||
from card_test_3_ds_counter2 import *
|
||||
Reference in New Issue
Block a user