It's our great honour to announce the Industry’s First VHBR CCID reader - VHBR Dual interface smart card reader vR504. It is able to support the world’s fastest ePassports.

To celebrate the new product release, there is Special Discount for New Registered Members in our store.
- Get $20.00 OFF instantly for smart card reader vR504, R502 and bR301

Come to get the readers 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: 630
Joined: Thu May 21, 2015 4:05 am
Points: 2995
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