aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/sca
diff options
context:
space:
mode:
authorJ08nY2025-03-10 19:40:21 +0100
committerJ08nY2025-03-10 19:40:21 +0100
commit82d1bd61a4f42a6010c360df150d85db1265cf74 (patch)
treed172de5ecadc1e96c02624172f29179371008ac4 /pyecsca/sca
parent65cf6216291214c1a62dfcd41cbe2ca47464bf46 (diff)
downloadpyecsca-82d1bd61a4f42a6010c360df150d85db1265cf74.tar.gz
pyecsca-82d1bd61a4f42a6010c360df150d85db1265cf74.tar.zst
pyecsca-82d1bd61a4f42a6010c360df150d85db1265cf74.zip
Diffstat (limited to 'pyecsca/sca')
-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