Commit Graph

714 Commits

Author SHA1 Message Date
frankmorgner
a34f4b14d3 modifying ef cardsecurity to contain the chips public key (but a wrong signature)
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@714 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-09 17:30:19 +00:00
frankmorgner
3770a91d64 debug unprotected result
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@713 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-09 17:17:14 +00:00
frankmorgner
06d96e6fae fixed CA, which is now successfully tested
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@712 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-09 10:00:48 +00:00
frankmorgner
40881a9eef - fixed CA OID
- applied pypace interface for ca


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@711 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-08 15:51:14 +00:00
frankmorgner
f11a7a8d33 removed unused declaration
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@710 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-03 11:49:19 +00:00
frankmorgner
770b600706 return SC_SUCCESS instead of 0
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@709 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-01 20:46:42 +00:00
frankmorgner
d804becc74 removed handling of CAR and CHR, this is done in TA by OpenPACE
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@708 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-01 20:45:19 +00:00
frankmorgner
836fbdf455 enable time check for imported certificates
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@707 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-01 20:35:02 +00:00
frankmorgner
d0a8df4d59 removed card driver hack. use a better opensc instead (see https://github.com/frankmorgner/OpenSC)
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@706 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-01 20:34:27 +00:00
frankmorgner
da253c888f adapted to openpace
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@705 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-01 20:31:42 +00:00
frankmorgner
4de6741bbc mapping ca oid to the correct algorithm
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@704 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-01 11:24:54 +00:00
frankmorgner
bb00e76c99 Subroutines to parse_SM_CAPDU, protect_response and perform_security_operation
only return the resulting string and no longer status bytes

This prevents overwriting of the statusbytes when applying SM. Errors should be
returned via `raise SwError`


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@703 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-01 10:25:05 +00:00
frankmorgner
bae1b890ef fixed import of auxiliary data for TA. Terminals signature can be verified now
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@702 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-01 09:53:28 +00:00
frankmorgner
b9b13e7a72 more convenient values for pin and can
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@701 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-01 09:52:32 +00:00
frankmorgner
f6abb5d13b fixed output of configure variables for libnpa
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@700 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-31 20:16:33 +00:00
frankmorgner
55ece055c5 added ef card security
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@699 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-31 20:15:18 +00:00
frankmorgner
8ec045ced1 include shell code for cloning opensc with pace
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@698 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-29 14:31:31 +00:00
frankmorgner
4ede307a1b always print a message in case of an error
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@697 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-25 15:07:38 +00:00
frankmorgner
2ed6a468fc using patched OpenSC enabled with PACE to use the reader's capabilities
sourcecode can be fetched from here https://github.com/frankmorgner/OpenSC


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@696 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-25 15:04:52 +00:00
frankmorgner
72f5d00a53 better debug output
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@695 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-25 09:49:50 +00:00
frankmorgner
2ecea8ae4c raise temporary buffer size to the maximum possible for pace
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@694 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-24 22:11:11 +00:00
frankmorgner
f93ac338a4 add support for big certificate descriptions
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@693 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-24 21:39:30 +00:00
frankmorgner
97c51d320d fixed import of CV certificates. Terminal's signature is currently wrongly checked (as 'invalid').
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@692 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-23 14:53:28 +00:00
frankmorgner
18036bb4de fixed parsing of extended length apdu with Le = max
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@691 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-23 14:49:38 +00:00
oepen
b7671f76c3 Fixed a typo
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@690 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-23 13:25:09 +00:00
oepen
5e5ef86e25 Fixed a typo
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@689 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-23 13:02:39 +00:00
frankmorgner
d13adaa9c3 fixed typo
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@688 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-23 10:45:09 +00:00
frankmorgner
bc6822351a fixed calculation of bertlv coded data for authentication
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@687 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-23 10:41:12 +00:00
oepen
81b2c5ce76 Removed broken code
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@686 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-23 09:58:27 +00:00
frankmorgner
06aebb7de0 nPA's SM now successfully tested
- fixed SEutils to use new input data to append_padding
- added defines to reference nPA's secrets (as keyref)
- fixed send sequence counter handling in nPA
- added protect_response to nPA to authenticate the status bytes
- implemented reset retry counter for nPA


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@685 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-22 00:14:30 +00:00
frankmorgner
0c1ad104a6 include most recent ca in response successfull PACE
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@684 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-20 15:46:51 +00:00
oepen
caba3ca8f4 -Propagate changes to append_padding to all files
-Adjust strip_padding to match append_padding


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@683 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-20 14:57:09 +00:00
oepen
ed2132480b Use the blocklength of the actual cipher to append padding (instead of hardcoded
DES-CBC blocklength)


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@682 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-20 14:13:58 +00:00
frankmorgner
6d94c9e544 added SM. currently untested due to bug in OpenPACE or pyPACE
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@681 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-19 22:48:43 +00:00
oepen
2600b5778d Adjusted libnpa to API changes in OpenPACE
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@680 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-18 16:06:56 +00:00
oepen
c704fb0283 Adapted TA steps to pypace
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@679 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-01-04 13:55:42 +00:00
frankmorgner
8fe4ffd2fe fixed help strings
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@678 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-19 21:41:13 +00:00
frankmorgner
ddf6431575 switched to argparse
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@677 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-19 21:37:01 +00:00
frankmorgner
58ac87489b added support for TA and CA (currently untested)
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@676 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-19 20:50:00 +00:00
frankmorgner
a7b5f9c042 added PIN management for nPA
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@675 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-19 02:36:35 +00:00
frankmorgner
045514ae20 - added dedicated nPA_SE
- saving mf in Security_Environment


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@674 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-17 16:45:27 +00:00
frankmorgner
1cbb185519 introducing a default SE for all cards
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@673 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-17 16:30:24 +00:00
frankmorgner
97fe61ae69 using if/else instead of a dedicated handler for eac steps
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@672 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-17 16:00:20 +00:00
frankmorgner
bcd0155238 added PACE support for nPA emulator
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@671 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-16 19:22:29 +00:00
frankmorgner
b8e5336e3a bugfix
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@670 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-15 10:49:43 +00:00
frankmorgner
12a7f8cfa0 fixed missing bracket
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@669 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-15 10:39:39 +00:00
frankmorgner
9e8347fd0f use libcrypto instead of libssl
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@668 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-14 15:53:51 +00:00
oepen
6bf7ca9b3f Partial conversion to python 3
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@667 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-11 16:56:15 +00:00
frankmorgner
899ea104c6 documentation
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@666 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-09 20:21:45 +00:00
oepen
7ac1760a15 git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@665 96b47cad-a561-4643-ad3b-153ac7d7599c 2011-12-09 16:35:52 +00:00