Commit Graph

279 Commits

Author SHA1 Message Date
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 375705a6f1 print out which SW was not ok
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@186 f711b948-2313-0410-aaa9-d29f33439f0b
2007-03-18 23:13:09 +00:00
hploetz 8f5951ad23 Improve brutefid
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@185 f711b948-2313-0410-aaa9-d29f33439f0b
2007-03-18 23:12:01 +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 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 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 085df9d25c Fix property overriding for subclasses. Might break things (possible regression point)
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@179 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-13 13:22:42 +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 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 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
hploetz a4efadb377 Do not make the __init__ method mandatory
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@172 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-10 21:46:57 +00:00
hploetz da08a97db7 Add support for detecting dynamic changes to an object's COMMANDS attribute
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@171 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-10 21:46:20 +00:00
hploetz a0ec31f0b7 Fixed transmit for 64bit systems
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@170 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-10 02:08:31 +00:00
hploetz 3c2a32efe4 UTF8
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@169 f711b948-2313-0410-aaa9-d29f33439f0b
2007-01-23 14:51:00 +00:00
hploetz 48a204816c Simple tool to parse usbsnoop-logs
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@168 f711b948-2313-0410-aaa9-d29f33439f0b
2007-01-17 09:15:37 +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 8a9b683d99 AIDs
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@165 f711b948-2313-0410-aaa9-d29f33439f0b
2007-01-15 13:34:24 +00:00
hploetz ba321e10ab Leave context when encountering a structure that is not application specific or universal
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@164 f711b948-2313-0410-aaa9-d29f33439f0b
2007-01-14 14:41:43 +00:00
hploetz c34c6a084c Fix size determination in building blocks
Create tcos 3.0 class


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@163 f711b948-2313-0410-aaa9-d29f33439f0b
2007-01-14 14:37:57 +00:00
hploetz 0d21b554e5 Decode recognized AIDs as DF name (find a conceptual flaw en passant and work around it)
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@162 f711b948-2313-0410-aaa9-d29f33439f0b
2007-01-14 14:25:57 +00:00
hploetz 07de9a478d API change: more information in the APPLICATIONS dictionary
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@161 f711b948-2313-0410-aaa9-d29f33439f0b
2007-01-14 13:46:30 +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 2eac1f6b44 Fix SFI handling
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@159 f711b948-2313-0410-aaa9-d29f33439f0b
2007-01-13 02:24:24 +00:00
hploetz 83ba3a1d73 Add SECCOS ATRs, no functionality yet
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@158 f711b948-2313-0410-aaa9-d29f33439f0b
2007-01-12 11:28:43 +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 ec3cb54a7f Ignore errors during decrypt/auth
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@156 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-29 20:26:00 +00:00
hploetz 050301e0a3 Ignore colons in fancy apdus
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@155 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-29 09:40:23 +00:00
hploetz 912c2d1d7c another ATR
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@154 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-28 23:12:59 +00:00
hploetz f79863986d silently ignore unknown algorithms in MSE (will raise an exception when trying to use in
get_cipherspec anyways) and only warn upon unknown config elements


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@153 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-28 08:22:28 +00:00
hploetz b9fc4b4487 Implement response decryption and decapsulation
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@152 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-27 04:17:09 +00:00
hploetz 1cc1433cd0 Implement pin entry
Note: DO NOT USE, seems to be broken


git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@151 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-27 04:16:45 +00:00
hploetz 97387a1d30 slightly better
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@150 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-26 18:24:29 +00:00
hploetz 68b5e8673a small bug regarding filler bytes
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@149 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-26 05:16:23 +00:00
hploetz 98034cf1f7 somewhat more elegant implementation, allows 00 or ff filler bytes to be present
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@148 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-26 05:10:04 +00:00
hploetz 58505948ea allow 00 and ff filler bytes to be returned optionally
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@147 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-26 05:09:30 +00:00
hploetz c7a610d2af response authentication
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@146 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-25 05:08:11 +00:00
hploetz ed4230a5cc output which data is encrypted
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@145 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-24 22:50:51 +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 07ced57fcd secure messaging for command apdu seems to work
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@143 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-24 21:54:55 +00:00
hploetz 124c2c3b60 implement pack()
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@142 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-23 15:02:23 +00:00
hploetz aa56530279 implement unpack(data, with_marks)
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@141 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-23 14:40:58 +00:00
hploetz 37754ffc51 Make marks relative to data field of APDU
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@140 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-23 14:38:53 +00:00
hploetz bd03819002 minor typos
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@139 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-23 14:34:00 +00:00
hploetz 09560911b6 separate SE configs for mac and encrytion
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@138 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-22 06:26:28 +00:00