I've just run these two sample files against the CVS Java library. The "with" file fails to verify, but the "without" is fine.

Dumping the post transformation bytes, I get the same output as the C++ library - in particular the PI stuff is output. With the Java 1.1 library, I don't get the PI output, only the nodes after it.

According to :

http://www.w3.org/TR/xml-c14n#Example-OutsideDoc

My read is that the PI *should* be there, so the C++ library and current Java CVS behaviour is correct. Java library 1.1 and previous is incorrect (again my read). This agrees with Raul's position, but I'm happy to be contradicted if someone thinks I have it up wrong!

Cheers,
        Berin

Milan Tomic wrote:

Hi Raul,


The code in CVS of c14n in java and c++ looks good enouth. So I need to know what version of the Java library are you using

I've checked with both 1.0 and 1.1 version of XSEC (checksig.exe app) and verification of signature fails. :<

Thank you,
Milan




Reply via email to