Commit Graph

183 Commits

Author SHA1 Message Date
frankmorgner
44b5262ddc dont mention authors in help
The argument formatter removes linebreaks and paragraphs, so we have to reduce the amount of information shown.


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@751 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-04-11 18:17:07 +00:00
frankmorgner
7a47a813cb improved vicc help
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@750 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-04-11 17:56:33 +00:00
frankmorgner
46e72c3b33 load card specific modules only when needed
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@749 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-04-11 17:55:56 +00:00
frankmorgner
feed837ee0 fixed throwing SwError
thanks, Ben.


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@728 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-03-04 21:35:31 +00:00
frankmorgner
35ad216428 fixed manipulation of EF.CardSecurity with CA public key
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@717 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-12 21:19:41 +00:00
frankmorgner
2c40f837c7 removed manipulation of ef_card_security since this would require the complete public point instead of the compressed public point
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@716 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-12 20:55:00 +00:00
frankmorgner
d069c01e15 adapted to pypace
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@715 96b47cad-a561-4643-ad3b-153ac7d7599c
2012-02-12 20:53:37 +00:00
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
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
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
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
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
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
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
frankmorgner
0452235abb - fixed sw when reading until end of file
- let npa emulator act like real npa (until general authenticate occurrs)


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@662 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-09 14:19:04 +00:00
frankmorgner
323f96fadb dont throw an error on mse:set at. using source code, which was priviously deleted.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@661 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-09 14:15:24 +00:00
oepen
c3da4b5f64 Remove dummy code for tags which are already handled by the ISO code
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@658 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-09 11:47:46 +00:00
frankmorgner
07af155110 dont throw an error on mse:set at. using source code, which was priviously deleted.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@656 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-09 10:54:12 +00:00
frankmorgner
28db2c72cc import chat as late as possible to not confuse generation of documentation
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@652 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-08 21:16:26 +00:00
frankmorgner
f877158623 autoconf macros for sed, ln and mkdir
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@651 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-08 20:34:19 +00:00
oepen
46d3551fbf Bugfixes: nPA emulator is now working
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@650 96b47cad-a561-4643-ad3b-153ac7d7599c
2011-12-08 15:37:40 +00:00