hploetz
cec02fbb96
Functionality to match against 'database'
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@198 f711b948-2313-0410-aaa9-d29f33439f0b
2007-05-31 02:51:02 +00:00
hploetz
b1bb99030d
Functional fix for the hypothetical case that SHORT_SW_WIDTH*(number of data groups checked) is not divisible by 8
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@197 f711b948-2313-0410-aaa9-d29f33439f0b
2007-05-30 23:57:18 +00:00
hploetz
50c9be2b50
copy'n'error
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@196 f711b948-2313-0410-aaa9-d29f33439f0b
2007-05-30 18:25:34 +00:00
hploetz
913e09a14e
Play safe
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@195 f711b948-2313-0410-aaa9-d29f33439f0b
2007-05-30 18:12:24 +00:00
hploetz
a05c6bf746
less verbose
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@194 f711b948-2313-0410-aaa9-d29f33439f0b
2007-05-30 18:06:57 +00:00
hploetz
92e16bef2c
Add fingerpass for passport fingerprinting
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@193 f711b948-2313-0410-aaa9-d29f33439f0b
2007-05-30 16:48:35 +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
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
47662ab48e
Get working under Windows with http://cheeseshop.python.org/pypi/PyCSC/0.3 (with Python 2.5 for Windows)
...
Note: you additionally need pycrypto, the source of which you'll get from http://cheeseshop.python.org/pypi/pycrypto/2.0.1
Compilation of pycrypto can work with cygwin in two steps: python setup.py build -c mingw32 and python setup.py install --skip-build
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@190 f711b948-2313-0410-aaa9-d29f33439f0b
2007-05-08 09:23:25 +00:00
hploetz
a94d4d8a32
easier to type alias
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@189 f711b948-2313-0410-aaa9-d29f33439f0b
2007-05-08 09:19:11 +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
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