mirror of
https://github.com/polhenarejos/pico-openpgp.git
synced 2024-09-19 19:00:15 +00:00
Fix returning chunked data.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
cf53fdd903
commit
3fe15c815c
@ -270,8 +270,8 @@ class OpenPGP_Card(object):
|
||||
raise ValueError(sw)
|
||||
if sw[0] == 0x61:
|
||||
return self.cmd_get_response(sw[1])
|
||||
if (sw[-2] == 0x61):
|
||||
return self.cmd_get_response(sw[-1])
|
||||
elif (sw[-2] == 0x61):
|
||||
return sw + self.cmd_get_response(sw[-1])
|
||||
elif sw[-2] == 0x90 and sw[-1] == 0x00:
|
||||
return sw[0:-2]
|
||||
if sw[0] == 0x6a and sw[1] == 0x88:
|
||||
|
Loading…
Reference in New Issue
Block a user