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

[iaik-ssl] IllegalBlockSizeException when encrypting

I'm using 3DES/CBC/PKCS5Padding cipher to encrypt 4 bytes of data. In 
some rare occasion, Cipher.doFinal(byte[]) throws an 
IllegalBlockSizeException . When encrypting the same bytes again, it 
does not throw the exception.
Actually, this exception is only thrown once per 5000 encryption actions 

As far as I understand, it should never throw an 
IllegalBlockSizeException when padding is used. Can anybody give some 


Tom van den Berge                                tom.vandenberge@bibit.com
Development                                          V +31 (0)30 65 95 143
Bibit Internet Payments BV                           F +31 (0)30 65 64 464
Kosterijland 20                                              www.bibit.com
3981 AJ Bunnik
The Netherlands

Mailinglist-archive at http://jcewww.iaik.at/mailarchive/iaik-ssl/sslthreads.html

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