fixed import of EF.CardSecurity

was a degradation of OpenPACE 7016e1a6e958cb7b9a241c059deb807f31dff5fe
This commit is contained in:
Frank Morgner
2013-02-09 23:44:04 +01:00
parent 2e029de07d
commit a0b37e1296

View File

@@ -204,6 +204,7 @@ class nPA_SE(Security_Environment):
ef_card_security = self.mf.select('fid', 0x011d) ef_card_security = self.mf.select('fid', 0x011d)
ef_card_security_data = ef_card_security.data ef_card_security_data = ef_card_security.data
pace.CA_disable_passive_authentication(self.eac_ctx)
ca_pubkey = pace.CA_get_pubkey(self.eac_ctx, ef_card_security_data) ca_pubkey = pace.CA_get_pubkey(self.eac_ctx, ef_card_security_data)
pace.EAC_CTX_init_ca(self.eac_ctx, 0, 0, self.ca_key, ca_pubkey) pace.EAC_CTX_init_ca(self.eac_ctx, 0, 0, self.ca_key, ca_pubkey)