[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iaik-jce] RSA type "PKCS #1 v1.5 block type 2"



Hello,

I'm trying to find a "common" setting for RSA encryption between
IAIK-RSA and the OpenSSL-RSA. Apparently I need to specify  "PKCS #1
v1.5 block type 2" ,but I'm not sure which of the settings for IAIK I
should use to get these settings. I have tried all of the following:

Cipher.getInstance("RSA"); 
Cipher.getInstance("RSA/0/PKCS1Padding"); 
Cipher.getInstance("RSA/1/PKCS1Padding"); 
Cipher.getInstance("RSA/2/PKCS1Padding"); 

just before I do a:

rsa.init(Cipher.ENCRYPT_MODE, key );
return rsa.doFinal(myData);

but I'm not sure what will give me "PKCS #1 v1.5 block type 2"

Any Idea's would be most welcome,

Tom

--
Mailinglist-archive at http://jcewww.iaik.tu-graz.ac.at/mailarchive/iaik-jce/maillist.html

To unsubscribe send an email to listserv@iaik.tu-graz.ac.at with the folowing content: UNSUBSCRIBE iaik-jce