Page 1 of 1

The APDU of RSA Signature in OpenPGPApplet

Posted: Fri Nov 27, 2015 5:26 am
by Ellisun
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.

Re: The APDU of RSA Signature in OpenPGPApplet

Posted: Sun Nov 29, 2015 11:50 pm
by bigWhite
It's very well. :lol: :lol: :lol: