aboutsummaryrefslogtreecommitdiffstats
path: root/utils.py
AgeCommit message (Collapse)AuthorFilesLines
2010-10-18Abstract out command classHenryk Plötz1-0/+5
2010-10-18Rename parse_fancy_apdu to parse_fancyHenryk Plötz1-1/+1
2010-10-15Add generic response chaining capabilityHenryk Plötz1-0/+7
2010-10-15Refactor generic code out of APDU class into a generic Transmission_Frame classHenryk Plötz1-19/+40
2010-06-01Add Raw_APDU class for unparsed and nonjudgmental data transmissionHenryk Plötz1-0/+14
2010-03-03Change behavior of defaults, possible API CHANGE, hope it's not too intrusiveHenryk Plötz1-2/+5
+ 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-03Implement InListPassiveTargets response parsing for ISO 14443 BHenryk Plötz1-0/+15
Implement PC/SC ATR generation for ISO 14443 B
2010-03-03Move InListPassiveTarget response parsing to ↵Henryk Plötz1-19/+66
PN532_Response_InListPassiveTarget class
2010-03-03Add class infrastructure for PN532 commandsHenryk Plötz1-1/+73
2010-03-03API CHANGE: Move CommandLineArgumentHelper to readers module to allow proper ↵Henryk Plötz1-37/+1
import order. (CommandLineArgumentHelper references the readers module, which references the utils module, so having CLAH in utils would create a circular reference.)
2010-02-26Move all PC/SC specific stuff to a separate class structure for readers ↵Henryk Plötz1-64/+4
(thus preparing the way for non-PC/SC-readers) This commit should be known as "Holy excessive layering, batman!"
2007-06-16Switch smartcard interface to pyscard from http://pyscard.sourceforge.net/hploetz1-48/+47
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-15Consolidating connect to a single placehploetz1-4/+10
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@246 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-08Consolidate and simplify common command line processing codehploetz1-1/+82
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@223 f711b948-2313-0410-aaa9-d29f33439f0b
2007-05-08Get working under Windows with http://cheeseshop.python.org/pypi/PyCSC/0.3 ↵hploetz1-1/+11
(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-02-12Move parse_fancy_apdu from Cyberflex_Shell to utils.C_APDUhploetz1-1/+126
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
2006-11-24make it possible to print an arbitrary offsethploetz1-2/+2
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@144 f711b948-2313-0410-aaa9-d29f33439f0b
2006-06-14variable length hexdumpshploetz1-4/+5
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@85 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-21generalize file operations, specialise for starcoshploetz1-1/+2
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@67 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-19fancy tlv fixeshploetz1-2/+2
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@60 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-19nicer TLV parsing, (more ugly code)hploetz1-0/+36
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@59 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18TLV utilitieshploetz1-15/+0
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@55 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18more bugfixes. open_secure_channel does now workhploetz1-1/+1
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@54 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18Transitioning to new APDU codehploetz1-0/+13
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@53 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18New APDUs basically feature completehploetz1-194/+27
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@52 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18further advances in APDU handlinghploetz1-13/+91
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@51 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18initial problem fixedhploetz1-32/+32
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@50 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18experimental next generation code, still brokenhploetz1-3/+138
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@49 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18some more T=0 vs. T=1 fixeshploetz1-28/+37
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@48 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-17better handling of non-T=0 APDUs. may still be buggyhploetz1-26/+32
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@46 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-04Implemented option to select readerhenryk1-2/+3
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@44 f711b948-2313-0410-aaa9-d29f33439f0b
2005-10-06APDU class, basically workinghenryk1-68/+132
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@32 f711b948-2313-0410-aaa9-d29f33439f0b
2005-10-03docstringshenryk1-1/+2
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@28 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-30Use the APDU object throughout (working, but not complete)henryk1-2/+4
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@26 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-30fixexhenryk1-3/+9
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@25 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-30lc calculationhenryk1-3/+4
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@24 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-30APDU classhenryk1-2/+109
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@23 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-28Fix line breakshenryk1-1/+1
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@10 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-28Less characters to print (especially tabs and line breaks)henryk1-1/+2
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@9 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-28rename offset -> indenthenryk1-4/+4
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@8 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-28utils.py will contain general utility functions. hexdump and parse_status ↵henryk1-0/+137
for now git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@7 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-27*** empty log message ***henryk1-0/+0
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@6 f711b948-2313-0410-aaa9-d29f33439f0b