use convenience wrapper for TA step 6
This commit is contained in:
@@ -375,13 +375,12 @@ class nPA_SE(Security_Environment):
|
|||||||
|
|
||||||
# FIXME auxiliary_data might be from an older run of PACE
|
# FIXME auxiliary_data might be from an older run of PACE
|
||||||
if hasattr(self.at, "auxiliary_data"):
|
if hasattr(self.at, "auxiliary_data"):
|
||||||
auxiliary_data = pace.get_buf(self.at.auxiliary_data)
|
auxiliary_data = self.at.auxiliary_data
|
||||||
else:
|
else:
|
||||||
auxiliary_data = None
|
auxiliary_data = None
|
||||||
|
|
||||||
if 1 != pace.TA_STEP6_verify(self.eac_ctx,
|
if 1 != pace.TA_STEP6_verify(self.eac_ctx, self.at.iv, id_picc,
|
||||||
pace.get_buf(self.at.iv), pace.get_buf(id_picc),
|
auxiliary_data, data):
|
||||||
auxiliary_data, pace.get_buf(data)):
|
|
||||||
pace.print_ossl_err()
|
pace.print_ossl_err()
|
||||||
raise SwError(SW["ERR_CONDITIONNOTSATISFIED"])
|
raise SwError(SW["ERR_CONDITIONNOTSATISFIED"])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user