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

[iaik-jce] RSA cipher initialisation

Some notes on how the different providers initialise the RSA cipher:


DSTC defaults to PKCS1 padding
ABA defaults to PKCS1 padding
IAIK defaults to not using PKCS1 padding (odd one out)

Mode specification:

DSTC uses 1 or 2 as the mode specifier
IAIK uses 0, 1 or 2 as the mode specifier
ABA uses ECB as the mode specifier (odd one out)

So, if you just ask for Cipher.getInstance("RSA") and initialise it you'll
get one result with ABA and DSTC (as they'll use PKCS1 padding) and another
with IAIK (as it won't use PKCS1 padding in this case). If you want to be
more specific the code won't work for all three because the mode specifiers
are different.

So close!

David Taylor,
Forge Research

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