Commit Graph

25 Commits

Author SHA1 Message Date
Henryk Plötz a8d72543e9 Separate out generic "Card" functionality from ISO specific functionality in preparation of DESfire native semantics
FIXME: send machinery in Card is still broken, need some generalisation on request/response, then specialisation in ISO_Card
2010-10-15 17:07:55 +02:00
Henryk Plötz 30828a01e8 Fix inheritance structure for Mifare DESfire 2010-03-03 03:13:02 +01:00
Henryk Plötz 42d2278cf8 + Make it possible for cards/applications to set Le for SELECT operations, use this in the passport application
+ Add code for nice tree formatting of EF/DF structures
2010-02-24 02:45:26 +01:00
hploetz 424a3c14c5 Make it possible for a card/application class to specify the P1 used for SELECT in the file case
Add an Application class (and AID) for NFC Forum Tag Type 4


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@261 f711b948-2313-0410-aaa9-d29f33439f0b
2008-06-10 03:34:21 +00:00
hploetz e4fa619d41 load_response and pretend_application commands
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@213 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-05 02:31:17 +00:00
hploetz 62a06241c0 API change: substitute new PURPOSE_GET_RESPONSE for PURPOSE_RETRY to match the actual semantics, add a different value for PURPOSE_RETRY to match the description
Refactor READ BINARY functionality out of iso_7816_4 into a building block
Implement READ BINARY (and "cat" command) for RFID storage cards using the new building block


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@207 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-02 06:14:18 +00:00
hploetz a1b12fe941 Allow arbitrary parameters for select_application
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@203 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-01 20:37:41 +00:00
hploetz 10a9dab1ef Allow SELECT APPLICATION and READ BINARY with given Le
Add resolve_symbolic_name convenience function
Add get_atr function
Implement STOP_ATRS functionality to stop ISO_7816_4_Card from accepting all cards, blacklist contactless storage cards


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@192 f711b948-2313-0410-aaa9-d29f33439f0b
2007-05-30 16:47:43 +00:00
hploetz 98f1dbe110 API change: DRIVER_NAME now is a (merged) list
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@187 f711b948-2313-0410-aaa9-d29f33439f0b
2007-03-18 23:38:24 +00:00
hploetz 6aaff0ef86 Fix length for passports
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@184 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-15 21:19:18 +00:00
hploetz f2f8a69d90 Add p2 parameter to open_file
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@181 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-13 13:43:56 +00:00
hploetz d685765fa0 Big change: Replace SW_OK and SW1_RETRY with a more generic check_sw() that gets its data from STATUS_MAP
Small improvements in brutefid, including the ability to brute subdirectories
More fixes for passport secure messaging, using check_sw, can now decrypt error responses ("End of file reached before Le bytes read", etc.)
Add support for tuples/lists in dictionaries in MERGE_DICTS_RECURSIVE in cards/__init__.py


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@177 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-13 00:32:04 +00:00
hploetz 82cddea7e7 Add support for aliases in application selection
Add skeleton for support of application specific commands that can be dynamically loaded
Pending addition of commands to work with passports


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@173 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-10 21:52:06 +00:00
hploetz a7a36c1dd2 New AIDs, name can be None now
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@167 f711b948-2313-0410-aaa9-d29f33439f0b
2007-01-17 09:14:35 +00:00
hploetz 42cc88fc9f Move select_application to 7816-4
Add vendor registry
Some AIDs
Simplify _decode_df_name


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@166 f711b948-2313-0410-aaa9-d29f33439f0b
2007-01-16 17:14:37 +00:00
hploetz b4a825c461 Fix read_record arguments
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@160 f711b948-2313-0410-aaa9-d29f33439f0b
2007-01-13 02:25:09 +00:00
hploetz c19a06d7f1 Factor out P2 parameter of SELECT
Add TCOS 3.0 ATR


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@157 f711b948-2313-0410-aaa9-d29f33439f0b
2007-01-12 11:28:16 +00:00
hploetz 3994578708 Minor beautification
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@127 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-19 04:44:45 +00:00
hploetz bbbf53fad1 READ RECORD commands
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@116 f711b948-2313-0410-aaa9-d29f33439f0b
2006-10-19 10:20:32 +00:00
hploetz 54c53d262c Make it possible to override tags
Replace the "= object()" with a proper class and explanation


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@93 f711b948-2313-0410-aaa9-d29f33439f0b
2006-06-16 23:14:14 +00:00
hploetz ac08ac1ff8 fix decoding of multi-byte tags
move parse_tlv to generic card


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@69 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-22 01:04:32 +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 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 455428f0cd ATR reorganisation and extension
initial TCOS code


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@57 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-19 00:19:08 +00:00
hploetz 0701d2612d some code for ISO cards
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@56 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18 20:22:15 +00:00