Page 1 of 1

How to send an array byte[] with shareable method

Posted: Fri Nov 04, 2016 2:04 am
by Usiger
Pls check the subject.

Re: How to send an array byte[] with shareable method

Posted: Sat Nov 05, 2016 4:03 am
by Tarantino
Did you do something for this problem by yourself?

Re: How to send an array byte[] with shareable method

Posted: Sat Nov 05, 2016 4:09 am
by Usiger
Tarantino wrote:Did you do something for this problem by yourself?

I tried to send an array byte[] but it returned status " 0x6F00"

Re: How to send an array byte[] with shareable method

Posted: Sat Nov 05, 2016 4:57 am
by Tarantino
You can only pass a global buffer through an SIO call. The only global buffer you have access to is the APDU buffer. Your SIO should take a buffer as a parameter (as per the JCRE API calls) that you give an offset to copy to as a second parameter. Then return the length of the data copied from your SIO and in the call copy the data into the buffer at the required offset.

This is a security feature of the JCRE.