.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
This commit is contained in:
hploetz 2007-06-11 03:43:58 +00:00
parent 2a0caea3c7
commit 9d25ab83d2
2 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,7 @@ class Passport_Application(Application):
def cmd_perform_bac(self, mrz2, verbose=1):
"Perform the Basic Acess Control authentication and establishment of session keys"
mrz2 = mrz2.upper()
Kseed = self.derive_seed(mrz2, verbose)
Kenc = self.derive_key(Kseed, 1)
Kmac = self.derive_key(Kseed, 2)

View File

@ -16,6 +16,7 @@
0:006404150102009000ee,P:6700,1,569AAA9A
Electronic Passport Specimen, issued by Bundesdruckerei, Germany
# ATS: 0e 78 33 c4 02 00 64 04 15 01 02 00 90 00
0:[^,]*,P:6700,1,5AAAAAAA,08
German Passport