Commit Graph

36 Commits

Author SHA1 Message Date
Henryk Plötz 9a3af066b0 Decode compact access bitmap 2011-01-08 03:50:37 +01:00
Henryk Plötz c5b4a68c26 Further decode access rule 2011-01-07 16:58:56 +01:00
Henryk Plötz 699e655ed8 Somewhat fix tcos 3.0 fci 0x85 parsing, involves an ugly hack though 2011-01-06 17:05:48 +01:00
Henryk Plötz a5ee60f35e Fix TCOS ATR regex for current cards 2011-01-06 16:42:59 +01:00
hploetz 84e812ebf7 Honor generic_card.DEBUG
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@219 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-07 22:28:43 +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 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 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 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 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 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 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 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 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
hploetz 8534043036 some secure messaging and security environment infrastructure
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@136 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-21 00:53:29 +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 753f3ef271 delete command
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@124 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-15 08:16:35 +00:00
hploetz db5f07df04 minor tweaks
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@120 f711b948-2313-0410-aaa9-d29f33439f0b
2006-10-25 13:31:43 +00:00
hploetz 63cded4f7d more TCOS decoding
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@100 f711b948-2313-0410-aaa9-d29f33439f0b
2006-07-15 07:41:06 +00:00
hploetz 6fa60ca512 Better ATR
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@98 f711b948-2313-0410-aaa9-d29f33439f0b
2006-07-12 05:21:18 +00:00
hploetz 08ca2ee282 MTCOS
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@91 f711b948-2313-0410-aaa9-d29f33439f0b
2006-06-16 22:02:20 +00:00
hploetz 4ae6e05dcc refactored ls code to a building blocks module
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@90 f711b948-2313-0410-aaa9-d29f33439f0b
2006-06-16 21:54:35 +00:00
hploetz efcd0f0cfd sorting
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@76 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-25 13:36:25 +00:00
hploetz b1f2a56881 ls -l (still ugly)
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@75 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-24 07:58:55 +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 6105e82733 cat and open for tcos
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@64 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-20 05:13:02 +00:00
hploetz ac02f8445b ls and cd commands for tcos
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@62 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-20 03:53:11 +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