Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
fixup! Fix for Extended APDUs
Browse files Browse the repository at this point in the history
  • Loading branch information
darconeous committed Mar 18, 2020
1 parent 7a72527 commit a4a83aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/ledger/u2f/U2FApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ private void handleSign(APDU apdu) throws ISOException {
scratch[SCRATCH_TRANSPORT_STATE] = TRANSPORT_EXTENDED;
apdu.setOutgoing();
apdu.setOutgoingLength((short)(outOffset - SCRATCH_PAD));
apdu.sendBytesLong(scratch, SCRATCH_PAD, outOffset);
apdu.sendBytesLong(scratch, SCRATCH_PAD, (short)(outOffset - SCRATCH_PAD));
}
else {
// Otherwise send the first chunk
Expand Down

0 comments on commit a4a83aa

Please sign in to comment.