Fix LE computation in a wrapped APDU.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
8476316e21
commit
5ea372f01c
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ uint16_t sm_get_le() {
|
|||
if (tag == 0x97) {
|
||||
uint16_t le = 0;
|
||||
for (uint16_t t = 1; t <= tag_len; t++) {
|
||||
le |= (*tag_data++) << (tag_len - t);
|
||||
le |= (*tag_data++) << (tag_len - t) * 8;
|
||||
}
|
||||
return le;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue