You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Sean Mullan <Se...@Sun.COM> on 2004/06/22 19:45:07 UTC

Sun's J2SE 1.5 JCE provider now passes all tests

Sun's JCE provider that is bundled with J2SE 1.5 Beta 2
(http://java.sun.com/j2se/1.5.0/download.jsp) now passes
all of the Apache XML Security tests. With beta 1, there were still
some outstanding failures with key wrapping tests but they have all
been fixed now. Can one of the committers please apply the changes
below to the org/apache/xml/security/resource/config.xml file to pick
up the new algorithms in the JCE provider? To use Sun's JCE provider,
download the Beta 2 JRE and edit the provider.properties file and set
the following (replace $JAVA_HOME with appropriate location):

# Specify your preferred provider, together with the download location
# of the provider file in this section.
jce.provider.source     = file:$JAVA_HOME/lib/ext/
jce.provider.prefix     = sun1.5beta2
jce.provider.jar        = sunjce_provider.jar



$ diff -c config.xml.orig config.xml
*** config.xml.orig     Tue Jun 22 10:57:30 2004
--- config.xml  Tue Jun 22 11:09:14 2004
***************
*** 446,451 ****
--- 446,454 ----
               <ProviderAlgo ProviderId="BC"
                             RequiredKey="DESEDE"
                             JCEName="DESEDEWrap" />
+             <ProviderAlgo ProviderId="SunJCE"
+                           RequiredKey="DESede"
+                           JCEName="DESedeWrap" />
               <!-- <ProviderAlgo ProviderId="BC" JCEName="DESEDEWrap" RequiredKey="DESEDE" /> -->
            </Algorithm>
            <Algorithm URI="http://www.w3.org/2001/04/xmlenc#kw-aes128"
***************
*** 457,462 ****
--- 460,468 ----
               <ProviderAlgo ProviderId="BC"
                             JCEName="AESWrap"
                             RequiredKey="AES" />
+             <ProviderAlgo ProviderId="SunJCE"
+                           JCEName="AESWrap"
+                           RequiredKey="AES" />
               <!-- <ProviderAlgo ProviderId="BC" JCEName="AESWrap" RequiredKey="AES" /> -->
            </Algorithm>
            <Algorithm URI="http://www.w3.org/2001/04/xmlenc#kw-aes192"
***************
*** 468,473 ****
--- 474,482 ----
               <ProviderAlgo ProviderId="BC"
                             JCEName="AESWrap"
                             RequiredKey="AES" />
+             <ProviderAlgo ProviderId="SunJCE"
+                           JCEName="AESWrap"
+                           RequiredKey="AES" />
               <!-- <ProviderAlgo ProviderId="BC" JCEName="AESWrap" RequiredKey="AES" /> -->
            </Algorithm>
            <Algorithm URI="http://www.w3.org/2001/04/xmlenc#kw-aes256"
***************
*** 479,484 ****
--- 488,496 ----
               <ProviderAlgo ProviderId="BC"
                             JCEName="AESWrap"
                             RequiredKey="AES" />
+             <ProviderAlgo ProviderId="SunJCE"
+                           JCEName="AESWrap"
+                           RequiredKey="AES" />
               <!-- <ProviderAlgo ProviderId="BC" JCEName="AESWrap" RequiredKey="AES" /> -->
            </Algorithm>
         </Algorithms>


Re: Sun's J2SE 1.5 JCE provider now passes all tests

Posted by Sean Mullan <Se...@Sun.COM>.
Davanum Srinivas wrote:
> Sean,
> 
> including "ant mega-sample"??? Anyways checked in the updates to config.xml.

Yes, I just ran mega-sample target and AFAICT it works fine (there were no
failure messages or exceptions).

--Sean


Re: Sun's J2SE 1.5 JCE provider now passes all tests

Posted by Davanum Srinivas <da...@gmail.com>.
Sean,

including "ant mega-sample"??? Anyways checked in the updates to config.xml.

thanks,
dims

On Tue, 22 Jun 2004 13:45:07 -0400, Sean Mullan <se...@sun.com> wrote:
> 
> Sun's JCE provider that is bundled with J2SE 1.5 Beta 2
> (http://java.sun.com/j2se/1.5.0/download.jsp) now passes
> all of the Apache XML Security tests. With beta 1, there were still
> some outstanding failures with key wrapping tests but they have all
> been fixed now. Can one of the committers please apply the changes
> below to the org/apache/xml/security/resource/config.xml file to pick
> up the new algorithms in the JCE provider? To use Sun's JCE provider,
> download the Beta 2 JRE and edit the provider.properties file and set
> the following (replace $JAVA_HOME with appropriate location):
> 
> # Specify your preferred provider, together with the download location
> # of the provider file in this section.
> jce.provider.source     = file:$JAVA_HOME/lib/ext/
> jce.provider.prefix     = sun1.5beta2
> jce.provider.jar        = sunjce_provider.jar
> 
> $ diff -c config.xml.orig config.xml
> *** config.xml.orig     Tue Jun 22 10:57:30 2004
> --- config.xml  Tue Jun 22 11:09:14 2004
> ***************
> *** 446,451 ****
> --- 446,454 ----
>                <ProviderAlgo ProviderId="BC"
>                              RequiredKey="DESEDE"
>                              JCEName="DESEDEWrap" />
> +             <ProviderAlgo ProviderId="SunJCE"
> +                           RequiredKey="DESede"
> +                           JCEName="DESedeWrap" />
>                <!-- <ProviderAlgo ProviderId="BC" JCEName="DESEDEWrap" RequiredKey="DESEDE" /> -->
>             </Algorithm>
>             <Algorithm URI="http://www.w3.org/2001/04/xmlenc#kw-aes128"
> ***************
> *** 457,462 ****
> --- 460,468 ----
>                <ProviderAlgo ProviderId="BC"
>                              JCEName="AESWrap"
>                              RequiredKey="AES" />
> +             <ProviderAlgo ProviderId="SunJCE"
> +                           JCEName="AESWrap"
> +                           RequiredKey="AES" />
>                <!-- <ProviderAlgo ProviderId="BC" JCEName="AESWrap" RequiredKey="AES" /> -->
>             </Algorithm>
>             <Algorithm URI="http://www.w3.org/2001/04/xmlenc#kw-aes192"
> ***************
> *** 468,473 ****
> --- 474,482 ----
>                <ProviderAlgo ProviderId="BC"
>                              JCEName="AESWrap"
>                              RequiredKey="AES" />
> +             <ProviderAlgo ProviderId="SunJCE"
> +                           JCEName="AESWrap"
> +                           RequiredKey="AES" />
>                <!-- <ProviderAlgo ProviderId="BC" JCEName="AESWrap" RequiredKey="AES" /> -->
>             </Algorithm>
>             <Algorithm URI="http://www.w3.org/2001/04/xmlenc#kw-aes256"
> ***************
> *** 479,484 ****
> --- 488,496 ----
>                <ProviderAlgo ProviderId="BC"
>                              JCEName="AESWrap"
>                              RequiredKey="AES" />
> +             <ProviderAlgo ProviderId="SunJCE"
> +                           JCEName="AESWrap"
> +                           RequiredKey="AES" />
>                <!-- <ProviderAlgo ProviderId="BC" JCEName="AESWrap" RequiredKey="AES" /> -->
>             </Algorithm>
>          </Algorithms>
> 
> 


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