Page 1 of 1

Array larger than 32K bytes

Posted: Mon Jul 18, 2016 5:42 am
by Brewling
I have just got started with JAVA CARD.

My problem is that I can only sign the data smaller than or equal to 32K bytes(because the array doesn't accept larger sizes than 32K bytes.). I can't sign data larger than 32K bytes.

For the larger data, how can I do it?

Thanks

Brewling

Re: Array larger than 32K bytes

Posted: Mon Jul 18, 2016 5:58 am
by posey
2.2.4.3.3 Arrays Arrays can hold a maximum of 32767 components.


So, 32K Bytes is the limit for an array size.

Re: Array larger than 32K bytes

Posted: Tue Jul 19, 2016 10:39 pm
by Tazmania09
Use the Signature.update() method on consecutive blocks of plaintext. you don't need to allocate an array at all.