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

AW: [iaik-jce]



Hello,

PKCS#1 1.5 requires a padding string of at least 8 bytes plus 3 other
formatting bytes. In this way the data has to be at least 11 bytes shorter
than the modulus. This easily is achieved by typical applications using RSA
for encrypting message digest values or content encryption keyw.
If you want to use disable padding (not recommended) you may use
Cipher.getInstance("RSA/ECB/NoPadding").
Cipher.getInstance("RSA") is equivalent to
Cipher.getInstance("RSA/ECB/PKCS1Padding") and automatically will select
right padding type (2 for public key encryption/ private key decryption, 1
for private key encryption/ public key decryption).

Dieter Bratko

-----Ursprüngliche Nachricht-----
Von: iaik-jce-owner@iaik.tu-graz.ac.at
[mailto:iaik-jce-owner@iaik.tu-graz.ac.at]Im Auftrag von Rohini Balaji
Gesendet: Freitag, 28. Juli 2000 08:41
An: iaik-jce@iaik.tu-graz.ac.at
Betreff: [iaik-jce]


Hi all,

How to overcome IllegalBlockSize OR BadPadding
Exception (especially in RSA PKCS#1 Padding) using
IAIK provider only. ?

many thanks in advance


__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
--
Mailinglist-archive at
http://jcewww.iaik.at/mailarchive/iaik-jce/jcethreads.html

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




smime.p7s