Try getting the "JCE Unlimited Strength Jurisdiction Policy Files" from
http://java.sun.com/j2se/1.5.0/download.jsp.
Vishal
Gilbert Pilz wrote:
Hi,
I just downloaded the Java version of XML Security 1.2.1, built it
under Eclipse and ran the unit tests. The following tests failed:
org.apache.xml.security.test.encryption.BaltimoreEncTest
test_five_content_aes256_cbc (Illegal key size)
test_five_content_aes128_cbc_kw_aes192 (Illegal key size
or default parameters)
test_five_element_aes192_cbc_ref (Illegal key size)
test_five_data_aes256_cbc_3des (Illegal key size)
test_five_data_aes192_cbc_aes256 (Illegal key size or default
parameters)
org.apache.xml.security.test.encryption.XMLCipherTester
testAES128ElementAES192KWCipherUsingKEK (Illegal key size or
default parameters)
testAES128ElementRSAKWCipherUsingKEK (Illegal key size or default
parameters)
testAES192ElementAES256KWCipher (Illegal key size or default
parameters)
testAes192ElementCipher (Illegal key size or default parameters)
testAes265ElementCipher (Illegal key size or default parameters)
I'm using the auto-downloaded version of the Bouncy Castle JCE
provider. I'm using J2SE v1.5.0_03 and Eclipse v3.0.2.
Are these failures "expected"? I notice that they seem to all involve
AES ciphersuites. Is there something wrong with the Bouncy Castle JCE?
- gil