Commit Graph

268 Commits

Author SHA1 Message Date
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
hploetz 7cba0484e8 Implemented logging
Hint: Try something like log %(HOMEDIR)s/cyberflex-shell-%(ISOTIME)s.log in your ~/.cyberflex-shellrc



git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@137 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-22 06:25:48 +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 3f8d22e4d5 after_send hook
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@135 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-21 00:51:32 +00:00
hploetz 3f9b79c511 Some useful options
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@134 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-21 00:50:56 +00:00
hploetz 586cc480b8 Separate rc file and main loop
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@133 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-21 00:38:05 +00:00
hploetz dddcdad519 At least shows the name now.
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@132 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-20 22:54:57 +00:00
hploetz c6537acc51 some postcard tool, probably not very useful, see http://www.parodie.com/monetique/explorer.htm
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@131 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-20 05:30:54 +00:00
hploetz 586a2049e2 should've tested that ...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@130 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-19 21:10:41 +00:00
hploetz a0d78cf3a6 implement reading of ~/.basenamerc
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@129 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-19 12:18:01 +00:00
hploetz c21d63752f move cipher() to crypto_utils
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@128 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-19 04:53:10 +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