Re: Canonicalization Validation

2009-07-29 Thread Sean Mullan
Scott Cantor wrote: Inconsistent c14n has caused us to have validation failures in the past, and I have found no decent way to finding out what exactly the canonicalizer output looks like. I've had to use the debugger and set the "os" stream to a FileOutputStream in DOMReferen

RE: Canonicalization Validation

2009-07-29 Thread Scott Cantor
> Inconsistent c14n has caused us to have validation failures in the past, and > I have found no decent way to finding out what exactly the canonicalizer > output looks like. I've had to use the debugger and set the "os" stream to a > FileOutputStream in DOMReference.transform(Data, XMLCryptoContex

Re: Canonicalization Validation

2009-07-29 Thread Aditya Muralidharan
I would generalize that question to include the java implementation. Inconsistent c14n has caused us to have validation failures in the past, and I have found no decent way to finding out what exactly the canonicalizer output looks like. I've had to use the debugger and set the "os" stream to

Re: RSA-SHA256 xml signature

2009-07-29 Thread Sean Mullan
Hi, The Java/JSR 105 API also supports this and the underlying JCE cryptographic support for RSA-SHA256 has been in Sun's JDK since 1.4.2. However. you must specify the URI when generating the SignatureMethod, as there is no String constant defined for it yet. So do the following: XMLSignat

RE: RSA-SHA256 xml signature

2009-07-29 Thread Colm O hEigeartaigh
I'm pretty sure BouncyCastle supports it: http://www.bouncycastle.org/java.html Apache WSS4J uses BouncyCastle as the crypto provider, and some of the tests use http://www.w3.org/2001/04/xmldsig-more#rsa-sha256 as the signature algorithm. Colm. -Original Message- From: Lukas Jedlicka [

RSA-SHA256 xml signature

2009-07-29 Thread Lukas Jedlicka
Hi, I have a question about creating xml signature usig RSAwithSHA256 algorithm. My application receives and sends signed XMLS. My application is written in Java 1.5 and uses Apache xmlsec_1_4_2.jar library for signing XML files. It uses javax.xml.crypto.dsig.SignatureMethod.RSA_SHA1 algorithm for