oepen
ae54cf5e18
Better exception handling
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@471 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-30 13:13:46 +00:00
oepen
c908fa9436
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@470 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-30 12:23:23 +00:00
oepen
24c858eba6
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@469 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 22:07:03 +00:00
oepen
03a4f8151e
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@468 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 20:44:15 +00:00
oepen
28972ee5be
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@467 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 20:40:38 +00:00
oepen
be448f9001
Merged CardContainer class with SAM.
...
Since part of the CardContainer functionallity was removed and the seperation
between both classes seemed kind of random, CardContainer was ditched in favor
of SAM.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@466 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 20:15:45 +00:00
oepen
60d8d5501b
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@465 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 20:06:15 +00:00
oepen
dfe2ecba2a
Removed remaining call to CardContainer.getKey
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@464 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 19:44:50 +00:00
oepen
46619ae71d
Removed in-memory encryption of data. We didn't use it and it was probably
...
buggy anyway, so this is a good opportunity to get rid of some awkard code.
In memory encryption might be properly implemented lateron using the SAM.FSencrypt
and SAM.FSdecrypt functions, but I doubt it's worth the trouble.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@463 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 19:35:46 +00:00
oepen
9c7343ffd3
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@462 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 18:49:03 +00:00
oepen
7ada4a0ca5
Bugfixing and code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@461 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 18:25:30 +00:00
oepen
65a8acaae3
-Bugfix: Added missing import in PassportSAM
...
-Bugfix: Fixed constant names in SEutils
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@460 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 18:16:55 +00:00
oepen
97722f937d
Removing unused functions
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@459 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 18:03:35 +00:00
oepen
e23da2ba76
Removing unused functions
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@458 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 18:00:30 +00:00
oepen
87860758c8
Removing unused functions
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@457 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 17:52:20 +00:00
oepen
b8ed669d9f
Added convenience functions
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@456 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 17:49:40 +00:00
oepen
61e93395ba
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@455 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 17:42:44 +00:00
oepen
56b0a57a2b
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@454 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 17:29:02 +00:00
oepen
039da1c64a
Code style improvements and bugfixing in mutual_authenticate
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@453 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 16:32:58 +00:00
oepen
14c6690eb7
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@452 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 16:20:57 +00:00
oepen
3acb3beb65
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@451 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 16:13:25 +00:00
oepen
d89e77af59
Code style improvements
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@450 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 15:57:39 +00:00
oepen
0aae975fef
Bug hunting and beautifying with pylint
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@449 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 15:33:39 +00:00
oepen
dc040c7ab9
-Bugfix: Fixed incorrect indention
...
-Bugfix: Do not default to MD5 hashing
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@448 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 14:38:30 +00:00
oepen
48571a6f2b
Bugfix: adapted changed signature of the Security_Environment constructor
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@447 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 14:21:31 +00:00
oepen
d9f16f5a69
Even though there may be different Keys to protect CAPDUs and RAPDUs there is
...
only one Security Environment. Therefore, I merged the CAPDU_SE and RAPDU_SE
into current_SE. Works with the ePass Emulation, still need to test it with
the cryptoflex card.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@446 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 14:15:10 +00:00
oepen
47461a40ca
SmartcardSAM: Fixed syntax errors
...
SEutils: Now replying with error RAPDU when we do not support a referenced algorithm
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@445 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 09:36:30 +00:00
oepen
6cd71ddd55
Various Bugfixes with regard to parsing a MSE:SetAT.
...
The whole SE and SAM system should really be rewritten.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@444 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-29 09:08:46 +00:00
oepen
65a63fac53
Fixed some compiler warnings
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@443 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-28 09:41:35 +00:00
oepen
6d10d6ecb7
Fixed some typos
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@442 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-28 09:37:20 +00:00
frankmorgner
d0d98f81d5
fixed configure with pace
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@441 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-28 09:29:01 +00:00
frankmorgner
7bc4ad5701
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@440 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-27 22:25:15 +00:00
oepen
43df314a5e
-Moved MAX_LE defines to ConstantDefinitions
...
-Added a parameter to control whether or not an ISO card supports extended length APDUs
-Correctly indicating extended length support in the ATR
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@439 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-26 12:30:18 +00:00
frankmorgner
14fb0aefe9
adjusted to changes of OpenPACE
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@438 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-26 11:17:20 +00:00
oepen
3fe52398ed
Imported minor bugfix from upstream
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@437 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-26 11:16:59 +00:00
oepen
25635cb025
-Removed unused code from utils.py
...
-Added a unit test for case 2 extended length APDUs
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@436 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-26 11:10:06 +00:00
oepen
3447849133
-Bugfix: The Le of the Command APDU was used when sending out an error R_APDU
...
-Enhancement: Using correct effective Le for R_APDUs
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@435 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-26 09:46:49 +00:00
oepen
a98c1f84e7
-Bugfix: Erroneously set Lc and not Le for case 2 APDUs
...
-Added new property effective_Le
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@434 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 21:59:34 +00:00
frankmorgner
d3b7dd4dac
switched to opensc 0.12.1, where build_apdu has been accepted as sc_bytes2apdu
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@433 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 21:14:28 +00:00
frankmorgner
dea6b519ac
added support for GetReaderInfo of BSI TR-03119
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@432 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 20:04:16 +00:00
frankmorgner
319e571cee
- bugfix to be conform to OpenPACE API
...
- added consistency checks for lengths of APDUs
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@431 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 18:54:09 +00:00
oepen
394ff534ed
Fixed typo
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@430 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 14:52:23 +00:00
oepen
6e6dd7cfa7
Preliminary extended length APDU support
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@429 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 11:48:25 +00:00
oepen
d248e5ae40
Bugfix: wrong parameters were set in a call for formatResult
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@428 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-25 10:10:25 +00:00
frankmorgner
a7dbff3c62
silent build rules
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@427 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-23 22:24:45 +00:00
frankmorgner
1676f73d06
clearification on requirements for compliance to IFDHandler API version 3
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@426 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-07-23 14:08:01 +00:00
frankmorgner
843ea50985
released 0.3
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@425 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-05-20 09:28:48 +00:00
frankmorgner
e5a5be6eed
updated changelog
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@424 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-05-20 09:23:30 +00:00
frankmorgner
8683459ebb
fixed memory leaks
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@423 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-05-20 09:11:25 +00:00
frankmorgner
7e7f6ed570
updated documentation
...
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@422 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-05-20 08:55:03 +00:00