Skip to content

Commit

Permalink
mrpkey: fix TypeError: decrypt() cannot be called after encrypt()
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Jan 7, 2019
1 parent bf872f1 commit 839ced8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mrpkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,7 @@ def help():
if DEBUG or TEST:
print 'Auth message: ' + resp
print 'Auth MAC: ' + respmac + ' (verified)'
tdes= DES3.new(Kenc,DES.MODE_CBC,passport.DES_IV)
decresp= passport.ToHex(tdes.decrypt(passport.ToBinary(resp)))
if DEBUG or TEST:
print 'Decrypted Auth Response: ' + decresp
Expand Down

0 comments on commit 839ced8

Please sign in to comment.