[C++] - varification, canonicalization, serialization

2003-12-04 Thread Andrzej Matejko
Hi, I create xml document, add Singature node, create signature and then serialize document in such way: --begin- XMLCh tempStr[100]; XMLString::transcode("LS", tempStr, 99); DOMImplementation *impl =DOMImplementationRegistry::getD

Re: [C++] - varification, canonicalization, serialization

2003-12-05 Thread Andrzej Matejko
do it for safety.) theSerializer->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, false); Hope that helps. Cheers, Berin Andrzej Matejko wrote: Hi, I create xml document, add Singature node, create signature and then serialize document in such way: --begin

CounterSignature or Multiple Signatures - is it possible?

2003-12-12 Thread Andrzej Matejko
Hi, Is it possible to create CounterSignature (signature over signature) or multiple signatures (over the same node) with xml dsig library? andrew

XSCryptCryptoBase64 - debug vs. release

2004-01-15 Thread Andrzej Matejko
Hi, I have discovered strange behavior of XSCryptCryptoBase64::encode in VisualC++.net. When I create xsec_1_0_0.dll in debug mode everything is ok - encode works perfect, but when I have create release version something strange happend. Encode starts to create wrong output!! I have lost

[C++] Hash value over large node

2004-01-25 Thread Andrzej Matejko
Hi, I have serious problem: when I sing and verify signature the hash value is calculated not over whole node with data, but only for about 0x500 bytes. I can't discover what is wrong The only things I found are: - void TXFMSHA1::setInput(TXFMBase * inputT) (called by DSIGReference::calc

createReference with Type != NULL - validation fails

2004-03-08 Thread Andrzej Matejko
uld be: http://uri.etsi.org/01903/v1.1.1#SignedProperties"; URI="#SignedProperties">. And here is a question: why, during signing, there is only type attribute in reference node? What am I doing wrong? Or is it a bug in xsec? andrzeJ Matejko

createBlankReference(....type...) - "type" or "Type"

2004-03-08 Thread Andrzej Matejko
Hi, The problem is very simple: when I create reference with type!=NULL in reference node, there is created attribute "type". When I verify such signature, DSIGReference::load throws exception, because its looking for "Type", not "type". And here is the question: is a bug in XSEC, or am I doing

RE: createBlankReference(....type...) - 'type' or 'Type'

2004-03-09 Thread Andrzej Matejko
Hi, I've tried latest CVS. Problems with: type vs. Type and createReference with type!=null are solved. Thanks for help. Andrew -Original Message- From: Berin Lautenbach [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 11:25 PM To: [EMAIL PROTECTED] Subject: Re: create

node without ds: ...

2004-04-19 Thread Andrzej Matejko
Hi, Is it possible to create this kind of signature? http://www.w3.org/2000/09/xmldsig#";> . I mean I have created my own schema (for XAdES implementation) and I have to create document with this kind node (ds: inside node but not is Signature)? andrzeJ Matejko

KeyInfo - KeyValue vs X509Certificate

2004-04-21 Thread Andrzej Matejko
Is there any method, function in xsec that checks if KeyValue and X509Data (X509Certificate) are compatible? (I mean, which checks that X509Data and KeyValue contains the same public key)? Or is it better to check it by myself (extract key, compare modulus and exponent)? andrzeJ

Verification - URI (http://...) in Reference - data transfer

2004-04-22 Thread Andrzej Matejko
mean: when signature is OK.,I would like to save this file into user choosen directory and I would like not to download this file once again). Andrzej Matejko

Detached signature and relative path

2004-04-26 Thread Andrzej Matejko
Hi, Is it possible to create detached digital siganture that has relative reference? I mean, reference points to file in current directory. In another way - something like that: ... Instead of: ... And during verification xsec will/should search current directory for file that is

WinCAPICryptoProvider, CryptAquireContext and CRYPT_MACHINE_KEYSET

2004-04-29 Thread Andrzej Matejko
g that the problem is in priviledges for keyset. Unfortunatelly I don't know how to change them and unfortunately on all computers I was logged as administrator :(((... Can anybody tell me what have I done wrong? Best, Andrzej Matejko

[c++] WinCAPICryptoProvider::WinCAPICryptoProvider - error==0.

2004-05-04 Thread Andrzej Matejko
Hi, Recently, during xsec tests on w2k I have noticed that on some workstations WinCAPICryptoProvider(provDSSName, provRSAName) fails on second CryptAquireContext(if (!CryptAcquireContext(&m_provRSA,NULL, provRSAName, PROV_RSA_AES, CRYPT_VERIFYCONTEXT)) ). And the most straneg things is,

Detached signature - reference (URI) coding.

2004-06-22 Thread Andrzej Matejko
Hi, Problem: How to encode non-ascii characters in URI that is used in reference? Description: I create detached signature. Reference is pointing to some file on disk. This file name contains nonascii characters. According to w3c XML Base recommendation (http://www.w3.org/TR/xmlbase/#escapin

XADES-T - timestamp

2004-12-02 Thread Andrzej Matejko
Hi, I'm looking for some examples of xades-t (I'm trying to understand how to encode/put timestamp respons from TSA into XADES document). Is there any free/evaluation software which produces XADES-T files? looking for help, Andrew

DSIGReference and ID attribute

2005-09-21 Thread andrzej . matejko
Hi, Is it possible to add ID attribute to DSIGReference node(as defined in http://www.w3.org/TR/xmldsig-core/#sec-Reference)? best regards, andrzeJ

Xpath and namespace problem

2008-03-25 Thread Andrzej Matejko
Hello, I've go signed xml file like: ...Reference not(ancestor-or-self::ds:Signature) when I try to validate it xsec fails on ds:Signature lookup (xalan is unable to resolve XPath equation). The question is: how to make xalan to resolve xpath with namespaces?? (xalan fails

Xpath and namespace problem..

2008-04-04 Thread Andrzej Matejko
Hello, I've go signed xml file like: ... not(ancestor-or-self::ds:Signature) . when I try to validate it xsec fails on ds:Xpath equation resolving. (xalan fails with error that ds prefix is not declared). The question is: how to make xalan to resolve xpath with namespa