psytester
2c135644ce
Some ATR values for nPA OS
...
different ATR (Answer To Reset) values depending on used Chip version
It's just a playground, because in past eID client 'Open eCard App' did not recognize the card correctly with newest ATR values.
2014-10-23 20:13:27 +02:00
Frank Morgner
6b5b1a0c29
allow fid of ef.dir and ef.atr for file creation
2014-09-15 21:23:01 +02:00
Frank Morgner
c75f32d426
nPA: fixed short fid for ef.dir
2014-09-15 21:22:42 +02:00
Frank Morgner
1b011b6974
nPA: added EF.DIR to fool Open eCard App
2014-09-15 07:25:33 +02:00
Dominik
6ac1e0627a
Remove PBKDF2 tests
2014-08-01 21:34:00 +02:00
Dominik
6ea23f5606
Fix the rest of the Security Environment unit tests
...
This patch fixes the remaining Security Environment test cases so that
they will at least run. This has already turned up some
strange/inconsistent behaviour in the Security_Environment class and at
least one bug (incorrect usage of the bertlv_pack function in the
generate_public_key_pair method).
2014-08-01 21:10:51 +02:00
Dominik
ab26133ff7
Fix one of the SE test cases
...
The SE API has changed so that all the old tests will need to be fixed.
This is the first step in this direction.
2014-08-01 20:29:01 +02:00
Dominik
a23f6cdedf
Add license header to tests and fix formating
2014-07-31 20:38:42 +02:00
Dominik
d73bab9860
Clean up PBKDF2 class
...
We currently include the PBKDF2 implementation from the PyCrypto author.
This patch removes some of the stuff we do not use and need. In the
future we should move to the PBKDF2 implementation that is nowadays included
in PyCrypto to clean up the code even more.
2014-07-31 20:32:22 +02:00
Dominik
60ce645d33
Use the python unittest framework for tests of utils.py
2014-07-31 20:30:28 +02:00
Dominik
f4e013f3a0
Moved unit tests to a subpackage
2014-07-24 20:46:59 +02:00
Dominik
2053648dd0
Bump the year in the header
2014-07-23 22:02:56 +02:00
Dominik
25d751c91d
Convert existing unit tests to the python unittest framework
2014-07-23 22:00:51 +02:00
Dominik
9c53f1bbf4
Fix calls to virtualsmartcard.CryptoUtils.append_padding
...
The interface to append_padding changed some time ago but not all calls
have been adapted yet.
2014-07-23 21:49:12 +02:00
Frank Morgner
5a76118e34
allow connections from any host
2014-06-16 22:52:17 +02:00
Frank Morgner
31dbdd8dd7
openpace's python bindings were renamed to eac.py
2014-05-28 22:07:30 +02:00
Frank Morgner
40638afe31
fixed running without a given dataset
2014-05-28 22:07:04 +02:00
Frank Morgner
ebdb207a6b
fixed indentation
2014-05-26 22:17:35 +02:00
Frank Morgner
0de33c842b
moved example dataset to npa-example-data
2014-05-26 22:08:52 +02:00
Frank Morgner
47a09c5250
moved --datasetfile to nPA group
2014-05-26 22:03:43 +02:00
psytester
adc4768a09
Merge pull request #1 from psytester/master
...
part 2 for new option to read dataset file
2014-05-19 22:04:52 +02:00
psytester
4d7b9dfbb6
example dataset file
...
An example how th new dataset file has to look like
2014-05-19 21:45:56 +02:00
psytester
c411deeb2e
VirtualSmartcard new option for dataset
...
pass dataset file to CardGenerator
2014-05-19 21:43:08 +02:00
psytester
9768b2fbb4
CardGenerator can use input from dataset file
...
see new option in vicc, which will pass the dataset file content to CardGenerator
2014-05-19 21:35:10 +02:00
psytester
c070394f82
vicc reads dataset file
...
That new option -d <dataset file> or --datasetfile <dataset file> will read an optional dataset file to be able to start vicc->CardGenerator.py with various content
2014-05-19 21:26:40 +02:00
Frank Morgner
c9aed4f5aa
fix return code for blocked PIN
2014-02-28 23:20:02 +01:00
Frank Morgner
54e71a1028
use a 10 digit puk
2014-02-28 23:12:26 +01:00
Frank Morgner
6ad3f6070c
return remaining tries of PIN verification in MSE:Set AT
2014-02-28 22:29:29 +01:00
Frank Morgner
9b40f70ad8
use a correct mrz by default
2014-02-23 01:16:53 +01:00
Frank Morgner
0e9b87cc7b
use python wrappers to EAC_CTX and PACE_SEC
...
requires openpace 17891be5ee99d32e67bd954fbb26ff5eab6a0609
2013-11-01 19:38:52 +01:00
Frank Morgner
9970fbe742
don't use hard coded domain parameters for CA
...
needs OpenPACE 32d42f3b337cb0e9fca5a76824e471f431f4fbe0
2013-10-25 22:14:15 +02:00
Frank Morgner
ca5dfae640
use convenience wrapper for TA step 6
2013-10-23 09:55:12 +02:00
Frank Morgner
372ec6c265
hard coded CA protocol parameters are required currently
...
otherwise the curve will be unknown in OpenPACE. Fixes bug in
combination with OpenPACE 572eb903590257ac60f1661f0ba69a9994b4c3f5 and
later
2013-10-22 20:56:14 +02:00
Frank Morgner
a11be64015
catch and debug more errors
2013-10-21 21:01:08 +02:00
Frank Morgner
e76238505b
iv is mandatory in python-crypto now
2013-09-30 13:52:17 +02:00
Frank Morgner
951c5473bd
use a faked rID
2013-09-25 07:38:57 +02:00
Frank Morgner
15a53a39df
use EAC_init() and EAC_cleanup()
2013-09-25 07:22:37 +02:00
Frank Morgner
12aef1e72f
added more fci data for nPA
2013-09-11 06:38:56 +02:00
Frank Morgner
17ddef0297
reversed connection mode: allow vpcd to reconnect
2013-08-07 23:57:02 +02:00
Frank Morgner
4d1e67a26e
use a valid ATR for handler_test
2013-07-19 23:51:00 +02:00
Frank Morgner
a766a6e01a
fixed handling of SW1=0x61 in handler_test
2013-07-19 23:51:00 +02:00
Frank Morgner
291178d139
implemented reversed connection establishment
...
vpcd can now be configured connect to a previously started vpicc.
2013-07-15 10:18:40 +02:00
Frank Morgner
d6bf6a0b93
fixed extracting reference flags for select
2013-07-09 07:34:05 +02:00
Frank Morgner
8e5d044ab5
catch SwErrors in formatResult
2013-07-09 07:24:15 +02:00
Frank Morgner
50b2f85cc4
switch verbosity level via command line
2013-07-09 07:22:12 +02:00
Frank Morgner
68e01ac452
use hexdump to print strings of objects
2013-07-09 07:20:18 +02:00
Frank Morgner
8c1694f5b4
raise a SW error on failed decryption
2013-07-09 07:10:18 +02:00
Frank Morgner
a082227347
wrap errors in sm if decryption was successfull
2013-07-09 07:09:28 +02:00
Frank Morgner
31ff210f08
include program version in help
2013-06-27 00:25:05 +02:00
Frank Morgner
9c259f4af7
implemented vicc to pass PCSC-Lite's handler_test
2013-06-27 00:02:46 +02:00