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

[iaik-jce] Newbie and RSA


 I am a relatively new user of IAIK. I have a problem with RSA encryption.
 Whenever the plaintext size is greater than 120 bytes I get a 

 The code where I init the Cipher object is given below:

     /* prime the cipher to encrypt with RSA */
     cipher = Cipher.getInstance("RSA/ECB/NoPadding", "IAIK");
     cipher.init(Cipher.ENCRYPT_MODE, rsaKeys.getPublic());

		 /* encipher message into enc */
     enc = cipher.doFinal(message);

 Could anyone tell me how I can get around this problem?

 Thanks in advance


 "... A poor life this if, full of care, 
   We have no time to stand and stare"
	       - Leisure, W. H. Davies

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