Hello,

We are three interns in a software company, we are studying the 

 project "MUSCLEAPPLET" and we got problems while encrypting a message
according to the RSA-PKCS1 algorithm.

 

Premise that we can fully encrypt and decrypt with keys to 1024 using
RSA_NOPAD, but we must use RSA_PKCS1.

Could you please give us help?

 

Our tests were done on a kona25 card and JCWDE / CREF simulator in eclipse
with version 0.9.11 of muscle.

Here follows our APDU'S list to verify that we are not to be wrong:

 

 

 

select

0x00 0xA4 0x04 0x00 0x07 0x0B 0x0B 0x0B 0x0B 0x0B 0x06 0x01 0x00

 

Answer: 90 00

 

 

//setting default ACL-s and memory size.

b0 2a 00 00 28 08 4d 75 73 63 6c 65 30 30 04 01 04 31 32 33 34 04 31 

 32 33 34 03 02 04 31 32 33 34 04 34 33 32 31 00 00 27 10 00 02 01

 

Answer: 90 00

 

// Login user

 

b0 42 01 00 04 31 32 33 34

 

Answer: 90 00

 

//Rsa key generation with size 1024 in p1 there's private key and in 

 p2 public key b0 30 01 02 10 01 04 00 ff ff 00 02 00 02 00 00 00 02 00 

 02 00

 

Answer: 90 00

 

//init with mode 0x01= RSA_pkcs1 with public key 02

 

b0 36 02 01 05 01 03 01 00 00

 

Answer: 90 00

 

// Process with public key 02

b0 36 02 03 13 01 00 10 01 02 03 04 05 06 07 08 09 01 02 03 04 05 06 

 07

 

Answer: 6f 00

 

Thanks in advance for your help.

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to