Reference Citations - HerongYang.com - v2.95, by Herong Yang
IllegalBlockSizeException thrown from .NET dll: msg#00024
'DES Algorithm - Java Implementation in JDK JCE' tutorial book was cited in a Digital Point forum post in 2007.
The DES Algorithm - Java Implementation in JDK JCE tutorial book was cited in a Digital Point forum post in 2007.
Subject: IllegalBlockSizeException thrown from .NET dll: msg#00024
Date: Oct 24, 2007
Author: Jeroen Frijters
Source: http://osdir.com/ml/java.ikvm.devel/2007-10/msg00024.html
This worked for me. Thanks a ton.
Jeroen Frijters <jeroen@xxxxxxxxxx> wrote:
DES is a block cipher so it needs
padding if the plain text isn't an exact multiple of the block size.
Apparently Sun has a default padding scheme, but IcedTea doesn't. As
a workaround you can explicitly specify a padding:
Cipher ecipher = Cipher.getInstance("DES/ECB/PKCS5Padding");
According to https://www.herongyang.com/crypto
/des_java_jce_sun_implementation_3.html this is the same as what
"DES" gives you on the SunJCE.
Regards,
Jeroen
> -----Original Message-----
> From: ikvm-developers-bounces@xxxxxxxxxxxxxxxxxx [mailto:ikvm-
> developers-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Swetha Sivaram
> Sent: Wednesday, October 24, 2007 10:51
> To: ikvm-developers@xxxxxxxxxxxxxxxxxxxxx
> Subject: [Ikvm-developers] IllegalBlockSizeException thrown from
> .NET dll
>
> I have the following piece of code as part of my .jar file which is
> then compiled into a .NET dll using IKVM. The code runs fine when
> run as a jar but on using the .NET dll I receive an
> IllegalBlockSizeException with the message - 1 trailing bytes.
Table of Contents
PHP 5 Soap Client - Format of Request
►IllegalBlockSizeException thrown from .NET dll: msg#00024
How can I view the Chinese data in my database?
Hvor "sikker" er adgangskontrol med htaccess?
How to add DTD syntax line into XML using java code
how to update garbled characters
"Out-of-left-field" question for any ASP/VBScript Gurus