From: D Herring
Subject: Re: Ironclad and AES
Date: 
Message-ID: <4a4fbef4$0$29138$6e1ede2f@read.cnntp.org>
David Neu wrote:
> I'm trying to use Ironclad to encrypt a string using AES and store it
> in a file.  In the future, a separate Java program that's out of my
> control will read and decrypt the file.
> 
> I wrote a small test in CL, and it works fine, however, I also wrote
> up a test in Java to see if I could decrypt the file I wrote out using
> CL, and I'm getting the following exception:
> javax.crypto.IllegalBlockSizeException: Input length must be multiple
> of 16 when decrypting with padded cipher
> 	at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
> 	at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
> 	at com.sun.crypto.provider.AESCipher.engineDoFinal(DashoA13*..)
> 	at javax.crypto.Cipher.doFinal(DashoA13*..)
> 	at aestest.main(aestest.java:33)

If you encrypt the data with Java, do you get Ironclad's result, just 
zero-padded at the end?

- Daniel