Page 1 of 1

Sending more that 255 bytes of payload

Posted: Thu May 27, 2021 7:18 am
by LozCodes
Hi there,

I have an applet where I have implemented extended length and the applet is able to send extended length response APDUs - however when I try and send a command APDU with a payload of more than 255 bytes I get the message 'APDU error: The command apdu is not correct.'

My understanding is that if the applet implements extended length then it can send or receive APDUs of 32767 bytes - I am trying to send 527 bytes so no where near the limit. This does happen when I try and send any number of bytes over 255 though.

Any help as to why this is happening would be appreciated.