use EAC_init() and EAC_cleanup()
This commit is contained in:
@@ -149,6 +149,7 @@ class nPA_SE(Security_Environment):
|
|||||||
self.eac_ctx = None
|
self.eac_ctx = None
|
||||||
pace.PACE_SEC_clear_free(self.sec)
|
pace.PACE_SEC_clear_free(self.sec)
|
||||||
self.sec = None
|
self.sec = None
|
||||||
|
pace.EAC_cleanup()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def __unpack_general_authenticate(data):
|
def __unpack_general_authenticate(data):
|
||||||
@@ -196,6 +197,7 @@ class nPA_SE(Security_Environment):
|
|||||||
raise SwError(SW["ERR_INCORRECTPARAMETERS"])
|
raise SwError(SW["ERR_INCORRECTPARAMETERS"])
|
||||||
|
|
||||||
if not self.eac_ctx:
|
if not self.eac_ctx:
|
||||||
|
pace.EAC_init()
|
||||||
self.eac_ctx = pace.EAC_CTX_new()
|
self.eac_ctx = pace.EAC_CTX_new()
|
||||||
|
|
||||||
ef_card_access = self.mf.select('fid', 0x011c)
|
ef_card_access = self.mf.select('fid', 0x011c)
|
||||||
|
|||||||
Reference in New Issue
Block a user