Commit Graph

525 Commits

Author SHA1 Message Date
Dominik
991ba148d9 Minor improvements to CardGenerator and the corresponding unit test
Make sure that the file gets closed when writing a card to/reading a
card from disk. Also add a unit test for the error condition when trying
to import a card from a nonexistent file.
2014-12-22 14:58:11 +01:00
Frank Morgner
3822b00c8a Merge pull request #34 from d0/master
Add CardGenerator unit test
2014-12-22 11:49:46 +01:00
Dominik
1e7492a806 Remove superfluous whitespaces 2014-12-21 16:06:32 +01:00
Dominik
bca1fe3656 Add CardGenerator unit test
Added a first unit test for the CardGenerator class. It currently only contains
one test case for generating a virtual nPA.

In order to use this test some changes to the TravisCI configuration are
required. Especially the OpenPACE python bindings need to be build before
vsmartcard is being tested since the vsmartcard nPA functions use these
bindings.
2014-12-21 15:30:08 +01:00
Frank Morgner
9d7965d73b fixed parsing of MSE:SET AT for nPA in AusweisApp2 2014-12-02 09:00:47 +01:00
Frank Morgner
2231258c62 version bump 2014-11-20 22:18:28 +01:00
Frank Morgner
b27126e450 updated documentation 2014-11-20 21:25:31 +01:00
Frank Morgner
e3d703161c released 0.7 2014-11-14 08:09:54 +01:00
Frank Morgner
8d6343dbdf removed reference to relay-note.txt 2014-11-14 08:08:39 +01:00
Frank Morgner
b5740e9b46 use either readline or pyreadline 2014-11-12 22:41:19 +01:00
Frank Morgner
8c7718401e perform git2cl on local project only 2014-11-11 09:35:29 +01:00
Frank Morgner
dc2e53634e clearifications on vpcd's docs 2014-11-03 18:02:11 +01:00
psytester
75426aee9c Allow "NotOnChip" for missing DGs of nPA
- changes DG13 into BirthName, DG19 into eAT ResidencePermit1 and DG20
  into eAT ResidencePermit2

- better reading of datasetfile (empty lines are allowed, new line
  character is trimmed from value

- Closes #30 #33 #31
2014-10-27 21:06:15 +01:00
psytester
22f1d17c39 ATR problem not for Open eCard, but another one 2014-10-25 21:43:07 +02:00
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
e6e6518650 clouds are for internet 2014-10-03 00:47:29 +02:00
Frank Morgner
4958cde4d8 fixed missing initialisation 2014-10-02 11:13:13 +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
Frank Morgner
04d26c376c vpcd-config: added scripts for windows builds 2014-09-12 07:58:44 +02:00
Frank Morgner
5a6238f397 fixed memory leak 2014-09-07 21:52:45 +02:00
Frank Morgner
2fd62ff431 include auto generated docs for test module 2014-09-07 15:28:18 +02:00
Frank Morgner
9f746a70c8 added vpcd-config 2014-09-07 15:28:14 +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
9f37dca959 working on documentation 2014-06-20 08:32:10 +02:00
Frank Morgner
5a76118e34 allow connections from any host 2014-06-16 22:52:17 +02:00
Frank Morgner
f84a398f91 added documentation about remote reader 2014-06-16 22:52:14 +02:00
Frank Morgner
4793d74d32 fixed incorrect mix of uint32_t/unsigned long int 2014-06-02 22:02:59 +02:00
Frank Morgner
142df850b0 fixed missing delimiter for reader array 2014-05-29 20:44:03 +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
e89a7f0d72 README cleanup 2014-05-26 23:23:50 +02:00
Frank Morgner
0df695f4bc don't treat compiler warnings as errors 2014-05-26 22:32:09 +02:00
Frank Morgner
ebdb207a6b fixed indentation 2014-05-26 22:17:35 +02:00
Frank Morgner
5c05556f54 Merge branch 'psytester-patch-1' 2014-05-26 22:13:52 +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
Frank Morgner
2b6a666fc3 Merge branch 'psytester-patch-2' 2014-05-26 22:00:52 +02:00
Frank Morgner
a723b738f9 added version from original libpcsclite 2014-05-26 21:56:34 +02:00
psytester
5da3add277 README.txt.in update for Windows 8
added another comment, since beginning with Windows 8 code signing is mandatory
2014-05-20 22:23:09 +02:00