You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a corner case example, a test may want to check that the returned status word is 0x61XX (and verify XX has the correct value) and consider 0x9000 as invalid, which I is not possible currently. This status word also conveys information that must be retrieved by the caller.
Delegating the status word check to the client is very convenient in most cases, but this shall not be mandatory.
Side note: Tests using speculos may want to verify that error status words are correctly returned in defined cases. This can be done currently by catching the exception and inspecting it.
The text was updated successfully, but these errors were encountered:
Current
apdu_exchange
andapdu_exchange_nowait
methods ofSpeculosClient
strips off and check automatically the status word from the device response.speculos/speculos/client.py
Lines 38 to 43 in 96875a8
In particular, it only checks that the status word is
0x9000
, and there are other status words which should not be considered as errors, such as:0x61XX
,0x9100
,0x9200
(as described in https://www.eftlab.com/knowledge-base/complete-list-of-apdu-responses/).In a corner case example, a test may want to check that the returned status word is
0x61XX
(and verifyXX
has the correct value) and consider0x9000
as invalid, which I is not possible currently. This status word also conveys information that must be retrieved by the caller.Delegating the status word check to the client is very convenient in most cases, but this shall not be mandatory.
Side note: Tests using speculos may want to verify that error status words are correctly returned in defined cases. This can be done currently by catching the exception and inspecting it.
The text was updated successfully, but these errors were encountered: