Excited to tell you that our welfare activity has been upgraded - Paying only $5.00 + Freight to get JCOP J3H145 card and A40CR card.
Please check this post for more details.

Moreover, if you want to get Free Samples by Paying Freight only , please check this page.

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

Post by 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 :3027
Contact:

Re: Some APDU commands and questions

Post by 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

Post by 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

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer