NIIBE Yutaka
07be37f45e
Fix tests for Gnuk emulation (skip test with no KDF setup).
...
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org >
2021-03-19 17:37:32 +09:00
Vincent Pelletier
dcef6e0ffa
tests/card_test_personalize_card.py: Exercise ECDH, X25519 and ED25519.
...
ECDH curves exercised are OpenPGP recommended set: ANSIx9p{256,384,521}r1
and BRAINPOOLp{256,384,512}r1, plus X25519 and ED25519.
Signature is only tested (for now ?) with ED25519 as other signature schemes
are (usually) non-deterministic and require implementing the signature
verification algorithm rather than just testing for equality with a test
vector.
Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com >
2021-03-19 16:09:03 +09:00
Vincent Pelletier
5283506755
tests/card_reader.py: Ignore CCID devices which report card absence.
...
Helps running tests on computers which have a "real" card reader in
addition to the ICC to be tested.
2021-02-18 14:42:47 +09:00
Vincent Pelletier
c688df7c2c
{tests/card_reader.py,tool/gnuk_token.py}: Extend timeout.
...
Some devices are slow at generating RSA4096 after a key settings change,
and may take time to notice a later change to a shorter key size.
Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com >
2021-02-18 14:28:32 +09:00
Vincent Pelletier
c66b01e74b
test{,s}/rka_keys.py: Add missing char escape specifiers.
...
Removes a 2-bytes trailer to the private key template, fitting in the
2-bytes length (which itself lacked an hexadecimal escape specifier, but
without effect on the result).
Fixes the length of the DigestInfo outermost list, from 25 to the intended
49.
Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com >
2021-02-18 14:28:17 +09:00
NIIBE Yutaka
e97e3b1810
tests: Fix a test for OpenPGP card version 3.3.
...
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org >
2020-08-26 09:38:41 +09:00
NIIBE Yutaka
cc0d59cfe6
tests: Power off the reader at the end of test suite.
2019-04-09 10:55:38 +09:00
NIIBE Yutaka
9c1368fdd0
tests: Fix time extension S block responce to TPDU reader.
2019-04-04 15:44:58 +09:00
NIIBE Yutaka
2dd5a76002
tests: Fix timer extension handling.
2019-04-03 17:03:35 +09:00
NIIBE Yutaka
f68ff0bddc
tests: Support keygen by OpenPGP card.
2019-04-03 17:02:37 +09:00
NIIBE Yutaka
add3299306
tests: KDF feature is Gnuk only.
2019-04-03 17:01:11 +09:00
NIIBE Yutaka
e28ec2c4c4
tests: Skip Gnuk only tests.
2019-04-03 14:51:32 +09:00
NIIBE Yutaka
1ba05a0f0f
tests: factor out tests into classes.
2019-04-03 13:49:55 +09:00
NIIBE Yutaka
2d50795d0a
tests: Skip Gnuk only test.
2019-04-03 09:45:06 +09:00
NIIBE Yutaka
fd493562c3
Add OpenPGP card v3.3 card factory reset setup.
2019-04-02 17:29:56 +09:00
NIIBE Yutaka
16c6af215a
tests: Use 3.3V for the card.
2019-04-02 13:19:56 +09:00
NIIBE Yutaka
bf9fc628b3
More tests for admin-less mode.
2018-04-05 13:06:13 +09:00
NIIBE Yutaka
26448d58ee
Update copyright year.
2018-04-04 19:29:35 +09:00
NIIBE Yutaka
b47bd693ba
More tests (3).
2018-04-04 17:42:14 +09:00
NIIBE Yutaka
1a7d3a698f
More tests (2).
2018-04-04 16:34:51 +09:00
NIIBE Yutaka
f7b03f7fb5
More tests.
2018-04-04 16:34:07 +09:00
NIIBE Yutaka
44971541fe
More test suite improvement. Add experimental KDF DO tests.
2018-04-04 15:44:34 +09:00
NIIBE Yutaka
53ed5e0a42
Test suite improvement.
2018-04-04 15:10:52 +09:00
NIIBE Yutaka
63eccda0a1
Add a test case to reset PW3.
2018-04-04 10:51:32 +09:00
NIIBE Yutaka
f430c90715
Rename tests.
2018-04-04 08:48:40 +09:00
NIIBE Yutaka
4ff0b3c5f8
tests: Fix for card readers.
2018-01-09 09:39:42 +09:00
NIIBE Yutaka
c9b1e511ba
Fix test and tests.
2017-11-06 10:51:11 +09:00
NIIBE Yutaka
effc65381a
Don't change PPS for other readers.
2017-10-24 20:39:51 +09:00
NIIBE Yutaka
bed43d4049
Add tests/ accessing DO 6E
2016-10-15 19:28:57 +09:00
NIIBE Yutaka
350528e1f4
tests/ update for signature counter
2016-10-15 18:35:21 +09:00
NIIBE Yutaka
4de605ed63
Add pubkey tests
2016-10-15 16:55:22 +09:00
NIIBE Yutaka
ffa9bf1f94
support factory_reset.
2016-10-14 08:45:01 +09:00
NIIBE Yutaka
38d70e277b
Fix difference between original OpenPGP card
2016-10-13 10:33:02 +09:00
NIIBE Yutaka
b00bab8dbf
tests/ update
2016-10-13 10:04:27 +09:00
NIIBE Yutaka
3c91dce8b7
fix tests/
2016-10-12 19:42:22 +09:00
NIIBE Yutaka
f1773c146b
fix test/
2016-10-12 15:32:51 +09:00
NIIBE Yutaka
50700e3887
more tests (incomplete)
2016-10-12 10:22:57 +09:00
NIIBE Yutaka
b0ee8b4452
TPDU reader works now
2016-10-07 16:39:20 +09:00
NIIBE Yutaka
a73f8cf4fd
implement TPDU card reader
2016-10-05 20:00:22 +09:00
NIIBE Yutaka
c1cc75f5b0
New test suite for OpenPGP card
2016-09-30 16:38:27 +09:00