santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k..@nethere.com
Subject Re: padding error
Date Wed, 07 Sep 2005 22:45:59 GMT
Ok, one more update. The last error was entirely my fault.
I was searching for an element that didn't exist.

But I'm still getting errors.
Current configuration:
BC provider at number 2.
searching for text1 element.
Still using j2se 1.4.2

This is the latest output and error:

Data: DES
Key encryption key stored in file:/C:/SampleCode/XMLencrypt/testXMLenc/kek
javax.crypto.spec.SecretKeySpec@6a844b7f
Key: [B@1c92535
 algorithmURI http://www.w3.org/2001/04/xmlenc#tripledes-cbc
java.lang.IllegalArgumentException: Key length not 128/192/256 bits.
	at
org.bouncycastle.crypto.engines.AESFastEngine.generateWorkingKey(AESFastEngine.java:606)
	at
org.bouncycastle.crypto.engines.AESFastEngine.init(AESFastEngine.java:679)
	at
org.bouncycastle.crypto.modes.CBCBlockCipher.init(CBCBlockCipher.java:79)
	at
org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.init(PaddedBufferedBlockCipher.java:74)
	at
org.bouncycastle.jce.provider.JCEBlockCipher.engineInit(JCEBlockCipher.java:420)
	at
org.bouncycastle.jce.provider.JCEBlockCipher.engineInit(JCEBlockCipher.java:473)
	at javax.crypto.Cipher.init(Cipher.java:370)
	at org.apache.xml.security.encryption.XMLCipher.encryptData(Unknown Source)
	at
org.apache.xml.security.encryption.XMLCipher.encryptElementContent(Unknown
Source)
	at org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown Source)
	at Encrypter.main(Encrypter.java:212)
Exception in thread "main"

Mime
View raw message