JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html

How to send an array byte[] with shareable method

JavaCard Applet Development Related Questions and Answers.
Usiger
Posts: 15
Joined: Tue Mar 01, 2016 3:56 am
Points :161
Contact:

How to send an array byte[] with shareable method

Post by Usiger » Fri Nov 04, 2016 2:04 am

Pls check the subject.

Tarantino
Posts: 101
Joined: Wed Aug 19, 2015 1:56 am
Points :478
Contact:

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

Post by Tarantino » Sat Nov 05, 2016 4:03 am

Did you do something for this problem by yourself?
The greatest glory in living lies not in never falling, but in rising every time we fall.--Nelson Mandela

Usiger
Posts: 15
Joined: Tue Mar 01, 2016 3:56 am
Points :161
Contact:

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

Post by Usiger » Sat Nov 05, 2016 4:09 am

Tarantino wrote:Did you do something for this problem by yourself?

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

Tarantino
Posts: 101
Joined: Wed Aug 19, 2015 1:56 am
Points :478
Contact:

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

Post by Tarantino » Sat Nov 05, 2016 4:57 am

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.
The greatest glory in living lies not in never falling, but in rising every time we fall.--Nelson Mandela

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 18 guests

JavaCard OS : Disclaimer