aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--pyecsca/sca/target/leia.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyecsca/sca/target/leia.py b/pyecsca/sca/target/leia.py
index 8dab7df..59336b6 100644
--- a/pyecsca/sca/target/leia.py
+++ b/pyecsca/sca/target/leia.py
@@ -29,7 +29,7 @@ class LEIATarget(ISO7816Target): # pragma: no cover
def send_apdu(self, apdu: CommandAPDU) -> ResponseAPDU:
leia_apdu = create_APDU_from_bytes(bytes(apdu))
resp = self.leia.send_APDU(leia_apdu)
- return ResponseAPDU(resp.data, resp.sw1 << 8 | resp.sw2)
+ return ResponseAPDU(bytes(resp.data), resp.sw1 << 8 | resp.sw2)
def connect(self, protocol: Optional[CardProtocol] = None):
proto = T.AUTO