Fixed a typo
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@689 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -104,7 +104,7 @@ class PassportSAM(SAM):
|
|||||||
#Receive Mutual Authenticate APDU from terminal
|
#Receive Mutual Authenticate APDU from terminal
|
||||||
#Decrypt data and check MAC
|
#Decrypt data and check MAC
|
||||||
Eifd = resp_data[:-8]
|
Eifd = resp_data[:-8]
|
||||||
padded_Eifd = vsCrypto.append_padding(self.current_se.cct.blocklength, Eifd)
|
padded_Eifd = vsCrypto.append_padding(self.current_SE.cct.blocklength, Eifd)
|
||||||
Mifd = vsCrypto.crypto_checksum("CC", self.KMac, padded_Eifd)
|
Mifd = vsCrypto.crypto_checksum("CC", self.KMac, padded_Eifd)
|
||||||
#Check the MAC
|
#Check the MAC
|
||||||
if not Mifd == resp_data[-8:]:
|
if not Mifd == resp_data[-8:]:
|
||||||
|
|||||||
Reference in New Issue
Block a user