From c704fb0283183463a47a0d3a38669e69dfed5b06 Mon Sep 17 00:00:00 2001 From: oepen Date: Wed, 4 Jan 2012 13:55:42 +0000 Subject: [PATCH] Adapted TA steps to pypace git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@679 96b47cad-a561-4643-ad3b-153ac7d7599c --- virtualsmartcard/src/vpicc/virtualsmartcard/cards/nPA.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/cards/nPA.py b/virtualsmartcard/src/vpicc/virtualsmartcard/cards/nPA.py index 32ad536..555debf 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/cards/nPA.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/cards/nPA.py @@ -256,7 +256,7 @@ class nPA_SE(Security_Environment): raise SwError(SW["ERR_INCORRECTPARAMETERS"]) cert = bertlv_pack([[0x7f, len(data), data]]) - if 1 != pace.TA_STEP2_import_certificate(self.eac_ctx, pace.get_buf(cert)): + if 1 != pace.TA_STEP2_import_certificate(self.eac_ctx, cert): raise SwError(SW["ERR_NOINFO69"]) def external_authenticate(self, p1, p2, data): @@ -273,7 +273,6 @@ class nPA_SE(Security_Environment): if 1 != pace.TA_STEP6_verify(self.eac_ctx, pace.get_buf(self.at.eph_pub_key), id_picc, - pace.get_buf(self.last_challenge), pace.get_buf(self.auxiliary_data), pace.get_buf(data)): raise SwError(SW["ERR_CONDITIONNOTSATISFIED"])