From: Slava P. <sl...@on...> - 2006-05-04 12:09:37
|
Hi, Could anybody help with NegativeArraySizeException or ArrayIndexOutOfBoundsException during cryptix decoding? java.lang.NegativeArraySizeException at cryptix.jce.provider.cipher.BlockCipher.engineDoFinal(BlockCipher.java:377) at javax.crypto.Cipher.doFinal(DashoA6275) at com.futuretrade.common.FTOcryptixEncoder.decode(FTOcryptixEncoder.java:171) We expecting this problem during application webstart run. Actually problem appears when before decoding aplication do some recources extraction from jar files and works with URL object. We were unable to reproduce this problem on local machine without webstart. Data for decoding was "2DA2015CB6C13740" and cipher initialization was done like: KeyGenerator keygen = KeyGenerator.getInstance( "DES", "CryptixCrypto" ); SecureRandom random = new SecureRandom( seed ); keygen.init( random ); key = keygen.generateKey(); cipher = Cipher.getInstance( "DES/ECB/PKCS5Padding", "CryptixCrypto" ); Best regards Slava Polipartov |