JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html

The APDU of RSA Signature in OpenPGPApplet

This project implement the OpenPGP card functionality

Moderator: Ellisun

User avatar
Ellisun
Posts: 50
Joined: Wed May 20, 2015 3:47 am
Points :472
Contact:

The APDU of RSA Signature in OpenPGPApplet

Post by Ellisun » Fri Nov 27, 2015 5:26 am

The following is the APDU command used in the process of RSA signature:

Code: Select all

//Signature

//select
00 A4 04 00 10 D2 76 00 01 24 01 02 00 00 06 00 00 00 01 00 00 00;

//verify pw1
0020008106313233343536;

//verify pw3
00200083083132333435363738;

// generate sig_key key pair
8047800001B6;

//getResponse
00C0000F;

//compute signature
802A9E9A06010203040506;

//getResponse
00C00001;


Also you can using the follows APDU commands to change the user pin and admin pin.
The format is:
//change User PIN
80 24 00 81 + Lc + New Pin + Old Pin + le
//change admin PIN
80 24 00 83 + Lc + New Pin + Old Pin + le

For example:

Code: Select all

//change User PIN 
802400810C313233343536112233445566

//change admin PIN
802400831031323334353637381122334455667788



    Note:
  1. The attachment is the script file, you can send it directly using pyApdutool.
You do not have the required permissions to view the files attached to this post. Please login first.

bigWhite
Posts: 35
Joined: Tue Aug 25, 2015 8:21 am
Points :502
Contact:

Re: The APDU of RSA Signature in OpenPGPApplet

Post by bigWhite » Sun Nov 29, 2015 11:50 pm

It's very well. :lol: :lol: :lol:

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer