You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Davanum Srinivas <da...@gmail.com> on 2004/07/12 18:27:00 UTC

"ant test" fails with 1.4.2_05 (used to work with 1.4.2._04)

FYI, "JDK 1.3.1_11" works fine "JDK 1.5.0-beta2" works fine BUT
1.4.2_05 has 8 failures (Yes, with the strong crypto stuff) 4 in
BaltimoreEncTest and 4 in XMLCipherTester. Tested with older versions
of BC providers as well with same effect. (So i suspect that the
problem is not in the version of BC provider.). Note that JDK1.4.2_04
worked fine.

-- dims

-------------------------------------------------------------------------------------------------------------------------------
Unsupported keysize or algorithm parameters

java.lang.SecurityException: Unsupported keysize or algorithm
parameters at javax.crypto.Cipher.init(DashoA6275) at
org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(XMLCipher.java:1476)
at org.apache.xml.security.encryption.XMLCipher.decryptElement(XMLCipher.java:1334)
at org.apache.xml.security.encryption.XMLCipher.doFinal(XMLCipher.java:808)
at org.apache.xml.security.test.encryption.BaltimoreEncTest.decryptElement(BaltimoreEncTest.java:514)
at org.apache.xml.security.test.encryption.BaltimoreEncTest.test_five_content_aes256_cbc(BaltimoreEncTest.java:289)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
-------------------------------------------------------------------------------------------------------------------------------

-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

Re: "ant test" fails with 1.4.2_05 (used to work with 1.4.2._04)

Posted by Sean Mullan <Se...@Sun.COM>.
Hi Milan,

Milan Tomic wrote:

> 	Sorry, I know this is off the topic, but...
> 
> Hello Sean,
> 
>     I've been just reading your "JavaTM Certification Path API
> Programmer's Guide" at:
> 
> http://java.sun.com/j2se/1.4.2/docs/guide/security/certpath/CertPathProgGuide.html
> 
>     Well, there are few variables never declared like "trustAnchors"
> and "certsAndCrls" in your samples. I've tried to use Google to search
> for some examples of usage for CertPathBuilder. I've been using keywords
> like "CertPathBuilder", "X509CertSelector" etc., but the only results I got 
> were J2SDK javadoc generated html pages for those classes. Sometimes Google
> returns less than 10 results (one page) It seems that nobody ever
> asked/answered questions about this topic on some 
> newsgroups/mailinglists.
> 
>     Please, could you publish on the link above or send to me, few
> compilable examples of usage for JavaTM Certification Path?

It should be fairly trivial to get the samples to compile from the guide
by adding the variable definitions, etc.

But I'm attaching a couple of programs that I use to validate and
build cert chains. They are pretty basic, but should give you an idea
of how to use the API. You can use them as a template to add more 
advanced features ...

HTH,
Sean



Re: "ant test" fails with 1.4.2_05 (used to work with 1.4.2._04)

Posted by Milan Tomic <mi...@setcce.org>.
	Sorry, I know this is off the topic, but...

Hello Sean,

    I've been just reading your "JavaTM Certification Path API
Programmer's Guide" at:

http://java.sun.com/j2se/1.4.2/docs/guide/security/certpath/CertPathProgGuide.html

    Well, there are few variables never declared like "trustAnchors"
and "certsAndCrls" in your samples. I've tried to use Google to search
for some examples of usage for CertPathBuilder. I've been using keywords
like "CertPathBuilder", "X509CertSelector" etc., but the only results I got 
were J2SDK javadoc generated html pages for those classes. Sometimes Google
returns less than 10 results (one page) It seems that nobody ever
asked/answered questions about this topic on some 
newsgroups/mailinglists.

    Please, could you publish on the link above or send to me, few
compilable examples of usage for JavaTM Certification Path?

Thank you,
Milan


Re: "ant test" fails with 1.4.2_05 (used to work with 1.4.2._04)

Posted by Davanum Srinivas <da...@gmail.com>.
weird!!!! I removed all jdks and jres on my machine, reinstalled
1.4.2_05 and all's well now. thanks.

-- dims

On Thu, 15 Jul 2004 10:27:43 -0400, Sean Mullan <se...@sun.com> wrote:
> I tried again but I cannot reproduce this. All tests pass for me.
> 
> Can someone else try testing with 1.4.2_05? Remember you must
> install the unlimited JCE strength policy files for all tests to pass.
> 
> Thanks,
> Sean
> 
> 
> 
> Davanum Srinivas wrote:
> > C:\JDK14\jre\lib\security>jar tvf local_policy.jar
> >    169 Mon Jun 16 15:36:32 EDT 2003 META-INF/MANIFEST.MF
> >    194 Mon Jun 16 15:36:42 EDT 2003 META-INF/JCE_DSA.SF
> >   2207 Mon Jun 16 15:36:42 EDT 2003 META-INF/JCE_DSA.DSA
> >    194 Mon Jun 16 15:36:32 EDT 2003 META-INF/JCE_RSA.SF
> >   2022 Mon Jun 16 15:36:32 EDT 2003 META-INF/JCE_RSA.RSA
> >      0 Mon Jun 16 15:36:30 EDT 2003 META-INF/
> >    192 Mon Jun 16 15:36:28 EDT 2003 default_local.policy
> >
> >
> > On Tue, 13 Jul 2004 15:04:35 -0400, Sean Mullan <se...@sun.com> wrote:
> >
> >>Do the contents look like?:
> >>
> >>$ jar tf $JAVA_HOME/jre/lib/security/local_policy.jar
> >>META-INF/MANIFEST.MF
> >>META-INF/JCE_DSA.SF
> >>META-INF/JCE_DSA.DSA
> >>META-INF/JCE_RSA.SF
> >>META-INF/JCE_RSA.RSA
> >>META-INF/
> >>default_local.policy
> >>
> >>
> >>
> >>
> >>Davanum Srinivas wrote:
> >>
> >>>yep. i did.
> >>>
> >>>-- dims
> >>>
> >>>On Tue, 13 Jul 2004 13:43:35 -0400, Sean Mullan <se...@sun.com> wrote:
> >>>
> >>>
> >>>>Hi Dims,
> >>>>
> >>>>I could not reproduce this. Are you sure you downloaded and installed
> >>>>the unlimited strength policy files: http://java.sun.com/j2se/1.4.2/download.html
> >>>>(scroll to bottom of page).
> >>>>
> >>>>--Sean
> >>>>
> >>>>
> >>>>
> >>>>Davanum Srinivas wrote:
> >>>>
> >>>>
> >>>>>FYI, if i drop bc-jce-jdk13-124.jar into jre\lib\endorsed it works
> >>>>>fine....So it's probably a bug in the javax.crypto / local_policy.jar
> >>>>>/ US_export_policy.jar
> >>>>>
> >>>>>-- dims
> >>>>>
> >>>>>On Mon, 12 Jul 2004 12:27:00 -0400, Davanum Srinivas <da...@gmail.com> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>>FYI, "JDK 1.3.1_11" works fine "JDK 1.5.0-beta2" works fine BUT
> >>>>>>1.4.2_05 has 8 failures (Yes, with the strong crypto stuff) 4 in
> >>>>>>BaltimoreEncTest and 4 in XMLCipherTester. Tested with older versions
> >>>>>>of BC providers as well with same effect. (So i suspect that the
> >>>>>>problem is not in the version of BC provider.). Note that JDK1.4.2_04
> >>>>>>worked fine.
> >>>>>>
> >>>>>>-- dims
> >>>>>>
> >>>>>>-------------------------------------------------------------------------------------------------------------------------------
> >>>>>>Unsupported keysize or algorithm parameters
> >>>>>>
> >>>>>>java.lang.SecurityException: Unsupported keysize or algorithm
> >>>>>>parameters at javax.crypto.Cipher.init(DashoA6275) at
> >>>>>>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(XMLCipher.java:1476)
> >>>>>>at org.apache.xml.security.encryption.XMLCipher.decryptElement(XMLCipher.java:1334)
> >>>>>>at org.apache.xml.security.encryption.XMLCipher.doFinal(XMLCipher.java:808)
> >>>>>>at org.apache.xml.security.test.encryption.BaltimoreEncTest.decryptElement(BaltimoreEncTest.java:514)
> >>>>>>at org.apache.xml.security.test.encryption.BaltimoreEncTest.test_five_content_aes256_cbc(BaltimoreEncTest.java:289)
> >>>>>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> >>>>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>>>>>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>>>>>-------------------------------------------------------------------------------------------------------------------------------
> >>>>>>
> >>>>>>--
> >>>>>>Davanum Srinivas - http://webservices.apache.org/~dims/
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>
> >>
> >
> >
> 
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

Re: "ant test" fails with 1.4.2_05 (used to work with 1.4.2._04)

Posted by Sean Mullan <Se...@Sun.COM>.
I tried again but I cannot reproduce this. All tests pass for me.

Can someone else try testing with 1.4.2_05? Remember you must
install the unlimited JCE strength policy files for all tests to pass.

Thanks,
Sean

Davanum Srinivas wrote:
> C:\JDK14\jre\lib\security>jar tvf local_policy.jar
>    169 Mon Jun 16 15:36:32 EDT 2003 META-INF/MANIFEST.MF
>    194 Mon Jun 16 15:36:42 EDT 2003 META-INF/JCE_DSA.SF
>   2207 Mon Jun 16 15:36:42 EDT 2003 META-INF/JCE_DSA.DSA
>    194 Mon Jun 16 15:36:32 EDT 2003 META-INF/JCE_RSA.SF
>   2022 Mon Jun 16 15:36:32 EDT 2003 META-INF/JCE_RSA.RSA
>      0 Mon Jun 16 15:36:30 EDT 2003 META-INF/
>    192 Mon Jun 16 15:36:28 EDT 2003 default_local.policy
> 
> 
> On Tue, 13 Jul 2004 15:04:35 -0400, Sean Mullan <se...@sun.com> wrote:
> 
>>Do the contents look like?:
>>
>>$ jar tf $JAVA_HOME/jre/lib/security/local_policy.jar
>>META-INF/MANIFEST.MF
>>META-INF/JCE_DSA.SF
>>META-INF/JCE_DSA.DSA
>>META-INF/JCE_RSA.SF
>>META-INF/JCE_RSA.RSA
>>META-INF/
>>default_local.policy
>>
>>
>>
>>
>>Davanum Srinivas wrote:
>>
>>>yep. i did.
>>>
>>>-- dims
>>>
>>>On Tue, 13 Jul 2004 13:43:35 -0400, Sean Mullan <se...@sun.com> wrote:
>>>
>>>
>>>>Hi Dims,
>>>>
>>>>I could not reproduce this. Are you sure you downloaded and installed
>>>>the unlimited strength policy files: http://java.sun.com/j2se/1.4.2/download.html
>>>>(scroll to bottom of page).
>>>>
>>>>--Sean
>>>>
>>>>
>>>>
>>>>Davanum Srinivas wrote:
>>>>
>>>>
>>>>>FYI, if i drop bc-jce-jdk13-124.jar into jre\lib\endorsed it works
>>>>>fine....So it's probably a bug in the javax.crypto / local_policy.jar
>>>>>/ US_export_policy.jar
>>>>>
>>>>>-- dims
>>>>>
>>>>>On Mon, 12 Jul 2004 12:27:00 -0400, Davanum Srinivas <da...@gmail.com> wrote:
>>>>>
>>>>>
>>>>>
>>>>>>FYI, "JDK 1.3.1_11" works fine "JDK 1.5.0-beta2" works fine BUT
>>>>>>1.4.2_05 has 8 failures (Yes, with the strong crypto stuff) 4 in
>>>>>>BaltimoreEncTest and 4 in XMLCipherTester. Tested with older versions
>>>>>>of BC providers as well with same effect. (So i suspect that the
>>>>>>problem is not in the version of BC provider.). Note that JDK1.4.2_04
>>>>>>worked fine.
>>>>>>
>>>>>>-- dims
>>>>>>
>>>>>>-------------------------------------------------------------------------------------------------------------------------------
>>>>>>Unsupported keysize or algorithm parameters
>>>>>>
>>>>>>java.lang.SecurityException: Unsupported keysize or algorithm
>>>>>>parameters at javax.crypto.Cipher.init(DashoA6275) at
>>>>>>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(XMLCipher.java:1476)
>>>>>>at org.apache.xml.security.encryption.XMLCipher.decryptElement(XMLCipher.java:1334)
>>>>>>at org.apache.xml.security.encryption.XMLCipher.doFinal(XMLCipher.java:808)
>>>>>>at org.apache.xml.security.test.encryption.BaltimoreEncTest.decryptElement(BaltimoreEncTest.java:514)
>>>>>>at org.apache.xml.security.test.encryption.BaltimoreEncTest.test_five_content_aes256_cbc(BaltimoreEncTest.java:289)
>>>>>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>>>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>-------------------------------------------------------------------------------------------------------------------------------
>>>>>>
>>>>>>--
>>>>>>Davanum Srinivas - http://webservices.apache.org/~dims/
>>>>>>
>>>>>
>>>>>
>>>>>
>>>
>>
> 
> 



Re: "ant test" fails with 1.4.2_05 (used to work with 1.4.2._04)

Posted by Davanum Srinivas <da...@gmail.com>.
C:\JDK14\jre\lib\security>jar tvf local_policy.jar
   169 Mon Jun 16 15:36:32 EDT 2003 META-INF/MANIFEST.MF
   194 Mon Jun 16 15:36:42 EDT 2003 META-INF/JCE_DSA.SF
  2207 Mon Jun 16 15:36:42 EDT 2003 META-INF/JCE_DSA.DSA
   194 Mon Jun 16 15:36:32 EDT 2003 META-INF/JCE_RSA.SF
  2022 Mon Jun 16 15:36:32 EDT 2003 META-INF/JCE_RSA.RSA
     0 Mon Jun 16 15:36:30 EDT 2003 META-INF/
   192 Mon Jun 16 15:36:28 EDT 2003 default_local.policy


On Tue, 13 Jul 2004 15:04:35 -0400, Sean Mullan <se...@sun.com> wrote:
> Do the contents look like?:
> 
> $ jar tf $JAVA_HOME/jre/lib/security/local_policy.jar
> META-INF/MANIFEST.MF
> META-INF/JCE_DSA.SF
> META-INF/JCE_DSA.DSA
> META-INF/JCE_RSA.SF
> META-INF/JCE_RSA.RSA
> META-INF/
> default_local.policy
> 
> 
> 
> 
> Davanum Srinivas wrote:
> > yep. i did.
> >
> > -- dims
> >
> > On Tue, 13 Jul 2004 13:43:35 -0400, Sean Mullan <se...@sun.com> wrote:
> >
> >>Hi Dims,
> >>
> >>I could not reproduce this. Are you sure you downloaded and installed
> >>the unlimited strength policy files: http://java.sun.com/j2se/1.4.2/download.html
> >>(scroll to bottom of page).
> >>
> >>--Sean
> >>
> >>
> >>
> >>Davanum Srinivas wrote:
> >>
> >>>FYI, if i drop bc-jce-jdk13-124.jar into jre\lib\endorsed it works
> >>>fine....So it's probably a bug in the javax.crypto / local_policy.jar
> >>>/ US_export_policy.jar
> >>>
> >>>-- dims
> >>>
> >>>On Mon, 12 Jul 2004 12:27:00 -0400, Davanum Srinivas <da...@gmail.com> wrote:
> >>>
> >>>
> >>>>FYI, "JDK 1.3.1_11" works fine "JDK 1.5.0-beta2" works fine BUT
> >>>>1.4.2_05 has 8 failures (Yes, with the strong crypto stuff) 4 in
> >>>>BaltimoreEncTest and 4 in XMLCipherTester. Tested with older versions
> >>>>of BC providers as well with same effect. (So i suspect that the
> >>>>problem is not in the version of BC provider.). Note that JDK1.4.2_04
> >>>>worked fine.
> >>>>
> >>>>-- dims
> >>>>
> >>>>-------------------------------------------------------------------------------------------------------------------------------
> >>>>Unsupported keysize or algorithm parameters
> >>>>
> >>>>java.lang.SecurityException: Unsupported keysize or algorithm
> >>>>parameters at javax.crypto.Cipher.init(DashoA6275) at
> >>>>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(XMLCipher.java:1476)
> >>>>at org.apache.xml.security.encryption.XMLCipher.decryptElement(XMLCipher.java:1334)
> >>>>at org.apache.xml.security.encryption.XMLCipher.doFinal(XMLCipher.java:808)
> >>>>at org.apache.xml.security.test.encryption.BaltimoreEncTest.decryptElement(BaltimoreEncTest.java:514)
> >>>>at org.apache.xml.security.test.encryption.BaltimoreEncTest.test_five_content_aes256_cbc(BaltimoreEncTest.java:289)
> >>>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> >>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>>>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>>>-------------------------------------------------------------------------------------------------------------------------------
> >>>>
> >>>>--
> >>>>Davanum Srinivas - http://webservices.apache.org/~dims/
> >>>>
> >>>
> >>>
> >>>
> >>
> >
> >
> 
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

Re: "ant test" fails with 1.4.2_05 (used to work with 1.4.2._04)

Posted by Sean Mullan <Se...@Sun.COM>.
Do the contents look like?:

$ jar tf $JAVA_HOME/jre/lib/security/local_policy.jar
META-INF/MANIFEST.MF
META-INF/JCE_DSA.SF
META-INF/JCE_DSA.DSA
META-INF/JCE_RSA.SF
META-INF/JCE_RSA.RSA
META-INF/
default_local.policy


Davanum Srinivas wrote:
> yep. i did.
> 
> -- dims
> 
> On Tue, 13 Jul 2004 13:43:35 -0400, Sean Mullan <se...@sun.com> wrote:
> 
>>Hi Dims,
>>
>>I could not reproduce this. Are you sure you downloaded and installed
>>the unlimited strength policy files: http://java.sun.com/j2se/1.4.2/download.html
>>(scroll to bottom of page).
>>
>>--Sean
>>
>>
>>
>>Davanum Srinivas wrote:
>>
>>>FYI, if i drop bc-jce-jdk13-124.jar into jre\lib\endorsed it works
>>>fine....So it's probably a bug in the javax.crypto / local_policy.jar
>>>/ US_export_policy.jar
>>>
>>>-- dims
>>>
>>>On Mon, 12 Jul 2004 12:27:00 -0400, Davanum Srinivas <da...@gmail.com> wrote:
>>>
>>>
>>>>FYI, "JDK 1.3.1_11" works fine "JDK 1.5.0-beta2" works fine BUT
>>>>1.4.2_05 has 8 failures (Yes, with the strong crypto stuff) 4 in
>>>>BaltimoreEncTest and 4 in XMLCipherTester. Tested with older versions
>>>>of BC providers as well with same effect. (So i suspect that the
>>>>problem is not in the version of BC provider.). Note that JDK1.4.2_04
>>>>worked fine.
>>>>
>>>>-- dims
>>>>
>>>>-------------------------------------------------------------------------------------------------------------------------------
>>>>Unsupported keysize or algorithm parameters
>>>>
>>>>java.lang.SecurityException: Unsupported keysize or algorithm
>>>>parameters at javax.crypto.Cipher.init(DashoA6275) at
>>>>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(XMLCipher.java:1476)
>>>>at org.apache.xml.security.encryption.XMLCipher.decryptElement(XMLCipher.java:1334)
>>>>at org.apache.xml.security.encryption.XMLCipher.doFinal(XMLCipher.java:808)
>>>>at org.apache.xml.security.test.encryption.BaltimoreEncTest.decryptElement(BaltimoreEncTest.java:514)
>>>>at org.apache.xml.security.test.encryption.BaltimoreEncTest.test_five_content_aes256_cbc(BaltimoreEncTest.java:289)
>>>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>-------------------------------------------------------------------------------------------------------------------------------
>>>>
>>>>--
>>>>Davanum Srinivas - http://webservices.apache.org/~dims/
>>>>
>>>
>>>
>>>
>>
> 
> 



Re: "ant test" fails with 1.4.2_05 (used to work with 1.4.2._04)

Posted by Davanum Srinivas <da...@gmail.com>.
yep. i did.

-- dims

On Tue, 13 Jul 2004 13:43:35 -0400, Sean Mullan <se...@sun.com> wrote:
> Hi Dims,
> 
> I could not reproduce this. Are you sure you downloaded and installed
> the unlimited strength policy files: http://java.sun.com/j2se/1.4.2/download.html
> (scroll to bottom of page).
> 
> --Sean
> 
> 
> 
> Davanum Srinivas wrote:
> > FYI, if i drop bc-jce-jdk13-124.jar into jre\lib\endorsed it works
> > fine....So it's probably a bug in the javax.crypto / local_policy.jar
> > / US_export_policy.jar
> >
> > -- dims
> >
> > On Mon, 12 Jul 2004 12:27:00 -0400, Davanum Srinivas <da...@gmail.com> wrote:
> >
> >>FYI, "JDK 1.3.1_11" works fine "JDK 1.5.0-beta2" works fine BUT
> >>1.4.2_05 has 8 failures (Yes, with the strong crypto stuff) 4 in
> >>BaltimoreEncTest and 4 in XMLCipherTester. Tested with older versions
> >>of BC providers as well with same effect. (So i suspect that the
> >>problem is not in the version of BC provider.). Note that JDK1.4.2_04
> >>worked fine.
> >>
> >>-- dims
> >>
> >>-------------------------------------------------------------------------------------------------------------------------------
> >>Unsupported keysize or algorithm parameters
> >>
> >>java.lang.SecurityException: Unsupported keysize or algorithm
> >>parameters at javax.crypto.Cipher.init(DashoA6275) at
> >>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(XMLCipher.java:1476)
> >>at org.apache.xml.security.encryption.XMLCipher.decryptElement(XMLCipher.java:1334)
> >>at org.apache.xml.security.encryption.XMLCipher.doFinal(XMLCipher.java:808)
> >>at org.apache.xml.security.test.encryption.BaltimoreEncTest.decryptElement(BaltimoreEncTest.java:514)
> >>at org.apache.xml.security.test.encryption.BaltimoreEncTest.test_five_content_aes256_cbc(BaltimoreEncTest.java:289)
> >>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> >>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>-------------------------------------------------------------------------------------------------------------------------------
> >>
> >>--
> >>Davanum Srinivas - http://webservices.apache.org/~dims/
> >>
> >
> >
> >
> 
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

Re: "ant test" fails with 1.4.2_05 (used to work with 1.4.2._04)

Posted by Sean Mullan <Se...@Sun.COM>.
Hi Dims,

I could not reproduce this. Are you sure you downloaded and installed
the unlimited strength policy files: http://java.sun.com/j2se/1.4.2/download.html
(scroll to bottom of page).

--Sean

Davanum Srinivas wrote:
> FYI, if i drop bc-jce-jdk13-124.jar into jre\lib\endorsed it works
> fine....So it's probably a bug in the javax.crypto / local_policy.jar
> / US_export_policy.jar
> 
> -- dims
> 
> On Mon, 12 Jul 2004 12:27:00 -0400, Davanum Srinivas <da...@gmail.com> wrote:
> 
>>FYI, "JDK 1.3.1_11" works fine "JDK 1.5.0-beta2" works fine BUT
>>1.4.2_05 has 8 failures (Yes, with the strong crypto stuff) 4 in
>>BaltimoreEncTest and 4 in XMLCipherTester. Tested with older versions
>>of BC providers as well with same effect. (So i suspect that the
>>problem is not in the version of BC provider.). Note that JDK1.4.2_04
>>worked fine.
>>
>>-- dims
>>
>>-------------------------------------------------------------------------------------------------------------------------------
>>Unsupported keysize or algorithm parameters
>>
>>java.lang.SecurityException: Unsupported keysize or algorithm
>>parameters at javax.crypto.Cipher.init(DashoA6275) at
>>org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(XMLCipher.java:1476)
>>at org.apache.xml.security.encryption.XMLCipher.decryptElement(XMLCipher.java:1334)
>>at org.apache.xml.security.encryption.XMLCipher.doFinal(XMLCipher.java:808)
>>at org.apache.xml.security.test.encryption.BaltimoreEncTest.decryptElement(BaltimoreEncTest.java:514)
>>at org.apache.xml.security.test.encryption.BaltimoreEncTest.test_five_content_aes256_cbc(BaltimoreEncTest.java:289)
>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>-------------------------------------------------------------------------------------------------------------------------------
>>
>>--
>>Davanum Srinivas - http://webservices.apache.org/~dims/
>>
> 
> 
> 



Re: "ant test" fails with 1.4.2_05 (used to work with 1.4.2._04)

Posted by Davanum Srinivas <da...@gmail.com>.
FYI, if i drop bc-jce-jdk13-124.jar into jre\lib\endorsed it works
fine....So it's probably a bug in the javax.crypto / local_policy.jar
/ US_export_policy.jar

-- dims

On Mon, 12 Jul 2004 12:27:00 -0400, Davanum Srinivas <da...@gmail.com> wrote:
> FYI, "JDK 1.3.1_11" works fine "JDK 1.5.0-beta2" works fine BUT
> 1.4.2_05 has 8 failures (Yes, with the strong crypto stuff) 4 in
> BaltimoreEncTest and 4 in XMLCipherTester. Tested with older versions
> of BC providers as well with same effect. (So i suspect that the
> problem is not in the version of BC provider.). Note that JDK1.4.2_04
> worked fine.
> 
> -- dims
> 
> -------------------------------------------------------------------------------------------------------------------------------
> Unsupported keysize or algorithm parameters
> 
> java.lang.SecurityException: Unsupported keysize or algorithm
> parameters at javax.crypto.Cipher.init(DashoA6275) at
> org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(XMLCipher.java:1476)
> at org.apache.xml.security.encryption.XMLCipher.decryptElement(XMLCipher.java:1334)
> at org.apache.xml.security.encryption.XMLCipher.doFinal(XMLCipher.java:808)
> at org.apache.xml.security.test.encryption.BaltimoreEncTest.decryptElement(BaltimoreEncTest.java:514)
> at org.apache.xml.security.test.encryption.BaltimoreEncTest.test_five_content_aes256_cbc(BaltimoreEncTest.java:289)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> -------------------------------------------------------------------------------------------------------------------------------
> 
> --
> Davanum Srinivas - http://webservices.apache.org/~dims/
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/