Commit Graph

30 Commits

Author SHA1 Message Date
Henryk Plötz e343352675 Rename parse_fancy_apdu to parse_fancy 2010-10-18 06:05:45 +02:00
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 63d7c9d0a8 sha is deprecated, move to hashlib (probably removes support for old python versions) 2010-02-26 02:27:17 +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
john 5540677e73 added lifecycle commands to CardOS
Passive Authentication for BAC MRTDs


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@254 f711b948-2313-0410-aaa9-d29f33439f0b
2008-03-10 22:54:53 +00:00
hploetz 55a0b4d4a2 mifare desfire, miscellaneous
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@250 f711b948-2313-0410-aaa9-d29f33439f0b
2007-11-14 12:42:46 +00:00
hploetz 9d25ab83d2 .upper() for the mrz2 in used in bac
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@242 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-11 03:43:58 +00:00
hploetz 2a0caea3c7 Incorporate some information from tr-03110-eac-1.0.pdf
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@241 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-10 00:46:55 +00:00
hploetz 38bc6d9efc Can now display displayed portrait and displayed signature or usual mark
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@236 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-09 06:40:04 +00:00
hploetz da589e2c77 Regression: read_com and friends were broken
Make decode_tag_list output more educational


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@235 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-09 05:17:30 +00:00
hploetz f5a1777099 fixes in mrz parsing for uncommon cases
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@234 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-09 05:01:08 +00:00
hploetz 6916b45f11 Reading from and saving to filesets works
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@230 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-08 05:33:29 +00:00
hploetz 09ab2cbff7 Picture loading working
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@229 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-08 04:54:41 +00:00
hploetz 3fa2f88419 Tool to read full passport information. Call without arguments to try without bac, or with mrz1 mrz2 or mrz2 to try with bac
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@224 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-08 00:55:16 +00:00
hploetz 94fbb4190c Passport parse code
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@221 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-08 00:10:11 +00:00
hploetz bda175ccb2 fix mrz2 checksum calculation
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@218 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-07 21:15:33 +00:00
hploetz 19b862ae24 Start passport parsing code
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@217 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-07 21:04:20 +00:00
hploetz f6f29a90a9 Have a stab at parsing biometric data
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@216 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-05 02:33:28 +00:00
hploetz 758223149b Make passport_application work with windows
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@191 f711b948-2313-0410-aaa9-d29f33439f0b
2007-05-08 09:50:47 +00:00
hploetz 47f7e768c1 Add config parameter to TCOS_Security_Environment._mac (was forgotten during refactoring)
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@188 f711b948-2313-0410-aaa9-d29f33439f0b
2007-04-10 00:51:40 +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 e9a4d97dc8 decode_mrz
override check_sw


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@183 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-15 21:16:33 +00:00
hploetz 09467b61a1 read_dg, read_sod and read_com commands
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@182 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-13 13:47:40 +00:00
hploetz 4ac8a00868 Introduce DEFAULT_CONTEXT
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@180 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-13 13:23:29 +00:00
hploetz 791c175eff Start parsing passport data
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@178 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-13 02:37:55 +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 f01836762b TCOS_Security_Environment: Handle 0x98/0x99 SM object
Passport_Application: Implement secure messaging


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@176 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-12 20:09:48 +00:00
hploetz 52fb65dc5d crypto_utils: Add generalized operation_on_string
passport_application: Completed BAC authentication and key derivation


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@174 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-12 01:51:20 +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