Page 1 of 1

Choose which: extended length or chaining?

Posted: Tue May 23, 2017 11:13 pm
by Marcat
Hi,

My applet needs to receive the APDU command with the data field whose length is greater than 255 bytes. For such commands, I should support the extended length or chaining, which is better? And which is much more secure?

Thanks a lot.
Mar

Re: Choose which: extended length or chaining?

Posted: Wed May 24, 2017 6:23 am
by Tarantino
Does your card support both chaining and extended length APDU? I suggest you to use extended length APDUs.

Re: Choose which: extended length or chaining?

Posted: Wed May 24, 2017 10:16 pm
by Marcat
Tarantino wrote:Does your card support both chaining and extended length APDU? I suggest you to use extended length APDUs.


Thank you for your help, Tarantino.

My card supports both chaining and extended length APDU. But I would like to know why you suggest me to use extended length APDU.

Re: Choose which: extended length or chaining?

Posted: Thu May 25, 2017 6:05 am
by Tarantino
Just use extended length APDUs, thus you do not have to use precious RAM for storing intermediate APDU's in a chain.