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:
24
tests/030_kdfsingle/test_060_adminfull_kdfsingle.py
Normal file
24
tests/030_kdfsingle/test_060_adminfull_kdfsingle.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""
|
||||
test_016_adminfull_kdfsingle.py - test KDF data object
|
||||
|
||||
Copyright (C) 2018, 2019 g10 Code GmbH
|
||||
Author: NIIBE Yutaka <gniibe@fsij.org>
|
||||
|
||||
This file is a part of Gnuk, a GnuPG USB Token implementation.
|
||||
|
||||
Gnuk is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Gnuk is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from skip_gnuk_only_tests import *
|
||||
from card_test_kdf_single import *
|
||||
25
tests/030_kdfsingle/test_061_adminfull_kdfsingle.py
Normal file
25
tests/030_kdfsingle/test_061_adminfull_kdfsingle.py
Normal file
@@ -0,0 +1,25 @@
|
||||
"""
|
||||
test_016_adminfull_kdfsingle.py - test KDF data object
|
||||
|
||||
Copyright (C) 2018, 2019 g10 Code GmbH
|
||||
Author: NIIBE Yutaka <gniibe@fsij.org>
|
||||
|
||||
This file is a part of Gnuk, a GnuPG USB Token implementation.
|
||||
|
||||
Gnuk is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Gnuk is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from skip_gnuk_only_tests import *
|
||||
from card_test_personalize_card_1 import *
|
||||
from card_test_personalize_card_2 import *
|
||||
24
tests/030_kdfsingle/test_062_adminfull_kdfsingle.py
Normal file
24
tests/030_kdfsingle/test_062_adminfull_kdfsingle.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""
|
||||
test_016_adminfull_kdfsingle.py - test KDF data object
|
||||
|
||||
Copyright (C) 2018, 2019 g10 Code GmbH
|
||||
Author: NIIBE Yutaka <gniibe@fsij.org>
|
||||
|
||||
This file is a part of Gnuk, a GnuPG USB Token implementation.
|
||||
|
||||
Gnuk is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Gnuk is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from skip_gnuk_only_tests import *
|
||||
from card_test_public_key_operations import *
|
||||
24
tests/030_kdfsingle/test_063_adminfull_kdfsingle.py
Normal file
24
tests/030_kdfsingle/test_063_adminfull_kdfsingle.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""
|
||||
test_016_adminfull_kdfsingle.py - test KDF data object
|
||||
|
||||
Copyright (C) 2018, 2019 g10 Code GmbH
|
||||
Author: NIIBE Yutaka <gniibe@fsij.org>
|
||||
|
||||
This file is a part of Gnuk, a GnuPG USB Token implementation.
|
||||
|
||||
Gnuk is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Gnuk is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from skip_gnuk_only_tests import *
|
||||
from card_test_ds_counter2 import *
|
||||
24
tests/030_kdfsingle/test_064_adminfull_kdfsingle.py
Normal file
24
tests/030_kdfsingle/test_064_adminfull_kdfsingle.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""
|
||||
test_016_adminfull_kdfsingle.py - test KDF data object
|
||||
|
||||
Copyright (C) 2018, 2019 g10 Code GmbH
|
||||
Author: NIIBE Yutaka <gniibe@fsij.org>
|
||||
|
||||
This file is a part of Gnuk, a GnuPG USB Token implementation.
|
||||
|
||||
Gnuk is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Gnuk is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from skip_gnuk_only_tests import *
|
||||
from card_test_personalize_reset import *
|
||||
24
tests/030_kdfsingle/test_065_adminfull_kdfsingle.py
Normal file
24
tests/030_kdfsingle/test_065_adminfull_kdfsingle.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""
|
||||
test_016_adminfull_kdfsingle.py - test KDF data object
|
||||
|
||||
Copyright (C) 2018, 2019 g10 Code GmbH
|
||||
Author: NIIBE Yutaka <gniibe@fsij.org>
|
||||
|
||||
This file is a part of Gnuk, a GnuPG USB Token implementation.
|
||||
|
||||
Gnuk is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Gnuk is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from skip_gnuk_only_tests import *
|
||||
from card_test_remove_keys import *
|
||||
24
tests/030_kdfsingle/test_066_adminfull_kdfsingle.py
Normal file
24
tests/030_kdfsingle/test_066_adminfull_kdfsingle.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""
|
||||
test_016_adminfull_kdfsingle.py - test KDF data object
|
||||
|
||||
Copyright (C) 2018, 2019 g10 Code GmbH
|
||||
Author: NIIBE Yutaka <gniibe@fsij.org>
|
||||
|
||||
This file is a part of Gnuk, a GnuPG USB Token implementation.
|
||||
|
||||
Gnuk is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Gnuk is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from skip_gnuk_only_tests import *
|
||||
from card_test_reset_pw3 import *
|
||||
2
tests/030_kdfsingle/test_070_adminless_kdfsingle.py
Normal file
2
tests/030_kdfsingle/test_070_adminless_kdfsingle.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from skip_gnuk_only_tests import *
|
||||
from card_test_personalize_admin_less_1 import *
|
||||
2
tests/030_kdfsingle/test_071_adminless_kdfsingle.py
Normal file
2
tests/030_kdfsingle/test_071_adminless_kdfsingle.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from skip_gnuk_only_tests import *
|
||||
from card_test_public_key_operations_alt import *
|
||||
2
tests/030_kdfsingle/test_072_adminless_kdfsingle.py
Normal file
2
tests/030_kdfsingle/test_072_adminless_kdfsingle.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from skip_gnuk_only_tests import *
|
||||
from card_test_ds_counter1 import *
|
||||
2
tests/030_kdfsingle/test_073_adminless_kdfsingle.py
Normal file
2
tests/030_kdfsingle/test_073_adminless_kdfsingle.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from skip_gnuk_only_tests import *
|
||||
from card_test_personalize_admin_less_2 import *
|
||||
2
tests/030_kdfsingle/test_074_adminless_kdfsingle.py
Normal file
2
tests/030_kdfsingle/test_074_adminless_kdfsingle.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from skip_gnuk_only_tests import *
|
||||
from card_test_personalize_reset import *
|
||||
2
tests/030_kdfsingle/test_075_adminless_kdfsingle.py
Normal file
2
tests/030_kdfsingle/test_075_adminless_kdfsingle.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from skip_gnuk_only_tests import *
|
||||
from card_test_remove_keys import *
|
||||
2
tests/030_kdfsingle/test_076_adminless_kdfsingle.py
Normal file
2
tests/030_kdfsingle/test_076_adminless_kdfsingle.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from skip_gnuk_only_tests import *
|
||||
from card_test_reset_pw3 import *
|
||||
Reference in New Issue
Block a user