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

Re: [iaik-jce] Padding with RSA, etc.



I am not really sure what you mean. In 2.51 the default padding for RSA
was changed, Cipher.getInstance("RSA", "IAIK") now returns a RSA cipher
configured for PKCS#1 padding instead of NoPadding as documented in the
changes file. This was done because using RSA without padding is basicly
pointless and to my knowledge noone uses anything but PKCS#1. PKCS#1 per
specification requires a padding string of at least 8 bytes plus 3 other
formatting bytes. If you want the old behaviour (no padding performed)
you should use Cipher.getInstance("RSA/ECB/NoPadding").

 Andreas Sterbenz              mailto:Andreas.Sterbenz@iaik.tu-graz.ac.at


-----Ursprüngliche Nachricht-----
Von: David Forslund <dwf@lanl.gov>
An: <iaik-jce@iaik.tu-graz.ac.at>
Gesendet: Freitag, 02. Juli 1999 05:58
Betreff: Re: [iaik-jce] Padding with RSA, etc.


> We notice that the Padding with RSA (to 8 bytes) is enforced in the
latest
> version of IAIK-JCE.  Is this simply
> to enhance security?   Or was there another reason?  We are having to
> change our code to work with the newer
> version.
>
> Thanks,
> David W. Forslund                               dwf@lanl.gov
> Advanced Computing
> Laboratory
<http://www.acl.lanl.gov/~dwf>http://www.acl.lanl.gov/~dwf
> Los Alamos National Laboratory          Los Alamos, NM 87545
> 505-665-1907                                    FAX: 505-665-4939
>
> --
> 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
>
>
>


smime.p7s