Page 1 of 1
Authenticating an applet on Javacard and an applet on SAM (Secure Access Module)
Posted: Sun Sep 18, 2016 8:27 am
by JavaCardVE
I have written an applet in my java card and the other applet in my SAM. I want to create mutual authentication by sending random number created each side. The model of reader is:
Code: Select all
c:\>gp.exe -all -d
# Detected readers from SunPCSC
[*] ACS ACR1281 1S Dual Reader PICC 0
[*] ACS ACR1281 1S Dual Reader SAM 0
I select applet on SAM ,create random number and send out. Then I select applet on java card creating string with random of SAM and new random creation by card and send the mixed random. So I should again select applet on SAM to check the random, but as my randoms are in transient Clear_ON_RESET Memory, they gone. IS there any way that I can have both SAM and Card selected ? I guess it should be a way to have both them up. (I need random numbers in transient Clear_ON_RESET Memory.And I use gp.exe for sending APDUs.
Re: Authenticating an applet on Javacard and an applet on SAM (Secure Access Module)
Posted: Tue Sep 20, 2016 4:25 am
by UNKNwYSHSA
Hello, could you tell me how to connect to the SAM read?
I hava one smartcard reader contains these interfaces:
- 0 : ACS ACR1281 1S Dual Reader ICC 0
- 1 : ACS ACR1281 1S Dual Reader PICC 0
- 2 : ACS ACR1281 1S Dual Reader SAM 0
But i don't know how to insert card to SAM interface and connect to it.
Re: Authenticating an applet on Javacard and an applet on SAM (Secure Access Module)
Posted: Tue Sep 20, 2016 4:46 am
by UNKNwYSHSA
The SAM slot is in the internal of the reader.
And i try to conntect to PICC and SAM interface at the same time.
For your requirement. You need to code the tool yourself. Because gp.exe can only connect to one reader interface once, when you switch to the other reader(s), you need to connect again and there have one cold reset.
Your application can connect both PICC/ICC and SAM interfaces. No reset in the transaction.
Re: Authenticating an applet on Javacard and an applet on SAM (Secure Access Module)
Posted: Wed Sep 21, 2016 12:18 am
by JavaCardVE
UNKNwYSHSA wrote:Hello, could you tell me how to connect to the SAM read?
I hava one smartcard reader contains these interfaces:
- 0 : ACS ACR1281 1S Dual Reader ICC 0
- 1 : ACS ACR1281 1S Dual Reader PICC 0
- 2 : ACS ACR1281 1S Dual Reader SAM 0
But i don't know how to insert card to SAM interface and connect to it.
Hi and tanks for replying,
My Colleagues insert card to SAM interface and i think he punched the a java card and inserted it.
I connect to SAM interface as the same as connect to card using gp.exe by sending APDU.
Re: Authenticating an applet on Javacard and an applet on SAM (Secure Access Module)
Posted: Wed Sep 21, 2016 12:26 am
by JavaCardVE
UNKNwYSHSA wrote:The SAM slot is in the internal of the reader.
And i try to conntect to PICC and SAM interface at the same time.
For your requirement. You need to code the tool yourself. Because gp.exe can only connect to one reader interface once, when you switch to the other reader(s), you need to connect again and there have one cold reset.
Your application can connect both PICC/ICC and SAM interfaces. No reset in the transaction.
Thanks a lot for your useful guidances.

Is there any tools for it or I should code it myself

?
Re: Authenticating an applet on Javacard and an applet on SAM (Secure Access Module)
Posted: Wed Sep 21, 2016 1:14 am
by UNKNwYSHSA
I don't know any tool can fit your requirement.