Henryk Plötz
144efe1cf7
Abstract out command class
2010-10-18 06:05:57 +02:00
Henryk Plötz
e343352675
Rename parse_fancy_apdu to parse_fancy
2010-10-18 06:05:45 +02:00
Henryk Plötz
20b8d8167e
Add generic response chaining capability
2010-10-15 17:58:54 +02:00
Henryk Plötz
04af868a4c
Refactor generic code out of APDU class into a generic Transmission_Frame class
2010-10-15 17:08:08 +02:00
Henryk Plötz
59917271dd
Add Raw_APDU class for unparsed and nonjudgmental data transmission
2010-06-01 03:05:19 +02:00
Henryk Plötz
9fbc745bd0
Change behavior of defaults, possible API CHANGE, hope it's not too intrusive
...
+ Change R_APDU parser and data default to allow construction of empty R_APDUs
+ Default unspecified C_APDU fields to None instead of 0, makes distinction of Le=0 vs. Le not present externally visible
2010-03-03 05:28:48 +01:00
Henryk Plötz
7bc2017424
Implement InListPassiveTargets response parsing for ISO 14443 B
...
Implement PC/SC ATR generation for ISO 14443 B
2010-03-03 04:23:25 +01:00
Henryk Plötz
da261b1332
Move InListPassiveTarget response parsing to PN532_Response_InListPassiveTarget class
2010-03-03 01:38:53 +01:00
Henryk Plötz
b27a1e034f
Add class infrastructure for PN532 commands
2010-03-03 00:58:30 +01:00
Henryk Plötz
bc07262d80
API CHANGE: Move CommandLineArgumentHelper to readers module to allow proper import order.
...
(CommandLineArgumentHelper references the readers module, which references the utils module, so having CLAH in utils would create a circular reference.)
2010-03-03 00:06:20 +01:00
Henryk Plötz
331bfc4d47
Move all PC/SC specific stuff to a separate class structure for readers (thus preparing the way for non-PC/SC-readers)
...
This commit should be known as "Holy excessive layering, batman!"
2010-02-26 02:27:26 +01:00
hploetz
c92a60fb10
Switch smartcard interface to pyscard from http://pyscard.sourceforge.net/
...
pycsc no longer supported
API change: utils doesn't export "pycsc" anymore
API change: utils.CommandLineArgumentHelper.connect now returns smartcard.CardService.CardService instance
API change: cards.generic_card.Card.__init__ and ...can_handle (and therefore cards.new_card_object) now expect CardService or CardConnection instance
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@247 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-16 06:56:57 +00:00
hploetz
326fd9a7be
Consolidating connect to a single place
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@246 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-15 16:49:17 +00:00
hploetz
918eaf3f40
Consolidate and simplify common command line processing code
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@223 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-08 00:30:35 +00:00
hploetz
47662ab48e
Get working under Windows with http://cheeseshop.python.org/pypi/PyCSC/0.3 (with Python 2.5 for Windows)
...
Note: you additionally need pycrypto, the source of which you'll get from http://cheeseshop.python.org/pypi/pycrypto/2.0.1
Compilation of pycrypto can work with cygwin in two steps: python setup.py build -c mingw32 and python setup.py install --skip-build
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@190 f711b948-2313-0410-aaa9-d29f33439f0b
2007-05-08 09:23:25 +00:00
hploetz
617a1693b6
Move parse_fancy_apdu from Cyberflex_Shell to utils.C_APDU
...
Extract actual MAC computation from tcos_card.TCOS_Security_Environment for later overriding in passport_application.Passport_Security_Environment
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@175 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-12 16:41:19 +00:00
hploetz
f45e4df652
make it possible to print an arbitrary offset
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@144 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-24 22:50:17 +00:00
hploetz
46a4a119be
variable length hexdumps
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@85 f711b948-2313-0410-aaa9-d29f33439f0b
2006-06-14 09:12:03 +00:00
hploetz
77659befd1
generalize file operations, specialise for starcos
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@67 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-21 13:04:48 +00:00
hploetz
81dc0e7eb9
fancy tlv fixes
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@60 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-19 18:28:35 +00:00
hploetz
60c80e35c7
nicer TLV parsing, (more ugly code)
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@59 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-19 02:24:48 +00:00
hploetz
53742b2705
TLV utilities
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@55 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18 20:21:51 +00:00
hploetz
f2bb9004cb
more bugfixes. open_secure_channel does now work
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@54 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18 16:26:21 +00:00
hploetz
c68e8bba2e
Transitioning to new APDU code
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@53 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18 15:45:07 +00:00
hploetz
f5e42ca71b
New APDUs basically feature complete
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@52 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18 06:37:06 +00:00
hploetz
95ccd90742
further advances in APDU handling
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@51 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18 06:24:24 +00:00
hploetz
861b8da00c
initial problem fixed
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@50 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18 05:37:52 +00:00
hploetz
2ec6001376
experimental next generation code, still broken
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@49 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18 05:00:19 +00:00
hploetz
036218d632
some more T=0 vs. T=1 fixes
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@48 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18 02:16:15 +00:00
hploetz
a2d6c6a624
better handling of non-T=0 APDUs. may still be buggy
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@46 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-17 18:40:12 +00:00
henryk
df4e90ea9e
Implemented option to select reader
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@44 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-04 23:58:28 +00:00
henryk
7802e9194f
APDU class, basically working
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@32 f711b948-2313-0410-aaa9-d29f33439f0b
2005-10-06 23:35:46 +00:00
henryk
5720cb30f6
docstrings
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@28 f711b948-2313-0410-aaa9-d29f33439f0b
2005-10-03 05:19:53 +00:00
henryk
2d8068b0e3
Use the APDU object throughout (working, but not complete)
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@26 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-30 04:13:34 +00:00
henryk
82eab03c68
fixex
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@25 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-30 03:34:15 +00:00
henryk
b89286679b
lc calculation
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@24 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-30 03:03:54 +00:00
henryk
28021747f4
APDU class
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@23 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-30 02:59:57 +00:00
henryk
122f2b9020
Fix line breaks
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@10 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-28 20:19:27 +00:00
henryk
ebeb989e38
Less characters to print (especially tabs and line breaks)
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@9 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-28 17:41:50 +00:00
henryk
4535fd115a
rename offset -> indent
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@8 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-28 15:10:36 +00:00
henryk
eb1df9aff0
utils.py will contain general utility functions. hexdump and parse_status for now
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@7 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-28 15:01:29 +00:00
henryk
8401c47490
*** empty log message ***
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@6 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-27 13:26:20 +00:00