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
[EMAIL PROTECTED]
Key: [EMAIL PROTECTED]
 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"

Reply via email to