Announce two new product: SmartCard Reader Rockey200 and USB2.0 Extension Cable

ROCKEY 200 is a handy and portable USB Smart Card reader that can perform read/write operations on any ISO 7816-1/2/3/4 smart cards which are compatible with protocol T=0 and T=1.

USB2.0 Extension Cable With high speed USB 2.0 devices such as USB token ,USB Card Reader and so on.

Come to try it now!

Some APDU commands and questions

This project implement the HOTP/TOTP card functionality.

Moderator: Ellisun

nobody2015
Posts: 15
Joined: Wed Aug 19, 2015 3:11 am
Points: 48
Contact:

Some APDU commands and questions

Postby nobody2015 » Fri Jan 08, 2016 6:24 am

The following APDU commands is in my my summary, in the process of my reading this applet.

Anyone can correct and supplement.

//select applet
00A4040008A00000052721010100;

//handlePut
800100000E7102353673042101000078017A04;

//handleCalc (calculateTruncated)
80A200010771023536740202;

//handleCalc, the response of this APDU is the Message Digest of SHA1/SHA256
80A200000771023536740101;

// handleCalcAll: the part of handleCalc() function
80A400000774010171023536;

//handleList: List all the object list. It contains Name and keyType, and you can added it use handlePut() function
80A1000000;


//handleChangeCode:In here, I don't know how should I fill the data of RESPONSE_TAG(0x75), in order to meet the following codes?

Code: Select all

if(Util.arrayCompare(buf, offs, tempBuf, _0, len) == 0) {
            OathObj oldAuth = authObj;
            authObj = scratchAuth;
            scratchAuth = oldAuth;
            oldAuth.setActive(false);
            authObj.setActive(true);
         } else {
            ISOException.throwIt(ISO7816.SW_DATA_INVALID);
         }

80030000207304210101017401017514(CalacValue ???)

User avatar
UNKNwYSHSA
Posts: 628
Joined: Thu May 21, 2015 4:05 am
Points: 2979
Contact:

Re: Some APDU commands and questions

Postby UNKNwYSHSA » Thu Jan 14, 2016 9:42 pm

From the method handleCalc(), the tempBuf contains the last result calculated. So the input data in the buf is the code calculated last time before.
sense and simplicity

nobody2015
Posts: 15
Joined: Wed Aug 19, 2015 3:11 am
Points: 48
Contact:

Re: Some APDU commands and questions

Postby nobody2015 » Fri Apr 01, 2016 2:28 am

UNKNwYSHSA wrote:From the method handleCalc(), the tempBuf contains the last result calculated. So the input data in the buf is the code calculated last time before.


3q


Return to “Ykneo Oath Applet”

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer