Page 1 of 1
How to exchange APDU between two applets
Posted: Wed Aug 09, 2017 11:42 pm
by mukundis
I have created two applet with different AIDs. The first ciphers text with RSA and the second one decipher. My question is in which way I could take the ciphers text and then, make a new APDU that contain in the field data the ciphers text?
Could anybody help to solve my issue? I am much appreciated for any help.
Re: How to exchange APDU between two applets
Posted: Thu Aug 10, 2017 10:34 pm
by mabel
If your applets are under one package then both can use
Code: Select all
public void processData (byte[] baBuffer, short sOffset, short sLength);
Method which is org.globalplatform.Application interface.
Note that application itself implements shareable.
If you want them in separate packages, create shareable interface and call decipher of second applet from first applets.
Store these results on second applet and then retrieve them by sending and APDU to that applet.