libnpa: requires an ID card that is initialized for QES. Today, this
means you need to register at sign-me.
virtualsmartcard: We don't actually create a real signature, because
PyCrypto can't handle ECDSA, let alone brainpoolP256r1. We only return a
64 byte buffer.
There are now tests for most currently implemented card types. Tests for
new card types can easily be added by inheriting from the basic test
class. The ePass card type is currently missing from the tests because
the CardGenerator for this class currently only works with user
interaction.
Commit 8ea1c74e2f moved the f.close()
statement to the wrong indention level, thereby closing the file
prematurely when reading Datagroups from a file. Since files are closed
automatically due to the with statement, we just remove the explicit
call to close().
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.
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.
- 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
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.