Re: XML DSIG schema validation performance

2005-07-07 Thread Matej Kafadar
As I see, the XML document has reference to schema which is on internet "xsi:schemaLocation="http://www.w3.org/2000/09/xmldsig# xmldsig-core-schema.xsd". Maybe this is problem. regards Matej Jorge Ortiz Claver wrote: Hi, I have a XML DSIG enveloping document I need to validate against its

Re: URI reference

2004-11-22 Thread Matej Kafadar
Hello, I tested xml signature with URI="file:///work/test.txt" with C++ XMLsec library and works fine. With Java XMLsec library doesn't work. What is wrong, or I am doing something wrong? regards Matej Matej Kafadar wrote: Hello, which URI reference is correct? example:

URI reference

2004-11-12 Thread Matej Kafadar
Hello, which URI reference is correct? example: I have file in absolute path "c:\work\test.txt" XMLsec couldn't find the file, if URI looks like URI="file:///work/test.txt". The exception is "Original Exception was java.io.FileNotFoundException: \\work\test.txt (The network path was not found)"

Re: [java & c++] interoperability & encryption

2004-10-11 Thread Matej Kafadar
We changed generation of encryption key, old: KeyGenerator keyGenerator = KeyGenerator.getInstance("AES"); keyGenerator.init(128); Key ek = keyGenerator.generateKey(); new: KeyGenerator keyGenerator = KeyGenerator.getInstance("DESede"); Key ek = keyGenerator.generateKey(); now it works. Milan Tomi

Re: [java & c++] interoperability & encryption

2004-10-01 Thread Matej Kafadar
I tried these two examples, and the problem is that C++ differently stores encrypted symetric key. It is byte rotated (first byte is last byte, last byte is first byte, etc). In file toenc-cpp-enc.xml I changed 8oxqYvaRsO9lM0pvbxAZ522imGXETq/bRP2uts5SHCm1tNwl+6LKgUcIAtDQT2yNykCdJEWoTrHx jo5IxE

XML detached signature

2004-08-19 Thread Matej Kafadar
Hi, When I create or verify detached XML signature with URI="file:/doc.txt", Java XMLsec library sign file in path "c:/doc.txt". Can URI hold relative path? How URI would look like to XMLsec verify doc.txt which is in the same folder that is signature? Thanks matej

Re: Is XML signature valid?

2004-06-30 Thread Matej Kafadar
String toSign is a absolute path to XML file to sign. File is attached. regards Matej > > Part of code: > > > > Document doc = db.parse(toSign); > > Element root = doc.getDocumentElement(); > > XMLSignature sig = new XMLSignature(doc, > > null,XMLSignature.ALGO_ID_SIGNATUR

Re: Is XML signature valid?

2004-06-30 Thread Matej Kafadar
Part of code: Document doc = db.parse(toSign); Element root = doc.getDocumentElement(); XMLSignature sig = new XMLSignature(doc, null,XMLSignature.ALGO_ID_SIGNATURE_RSA); root.appendChild(sig.getElement()); Transforms transforms = new Transforms(doc); transforms

Is XML signature valid?

2004-06-30 Thread Matej Kafadar
Hi, Milan posted two signed (enveloped) XML files signed in java (see attachment). One is with stylesheet and other without it. Both signatures are valid verified by java libraries. File "test_with_stylesheet_java.xml" is not valid verified by C++ libraries. Is XML signature "test_with_styleshee

Re: Id vs. id

2004-02-09 Thread Matej Kafadar
Hi, If you hava a signed XML file (below) WITHOUT SCHEMA, is siganture (focus on id) valid or invalid? http://www.w3.org/2000/09/xmldsig#";> ... some nodes (doesn't matter)... http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/> http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>