Re: AW: AW: Question on c14n exclusive

2004-05-27 Thread Vishal Mahajan
Dittmann, There's another approach you can try:     - Canonicalize once.     - Create a document (again) out of the c14n output.     - Serialize the document and in the process add xmlns="" at the desired place. Note that the last step of this procedure is not a c14n step. Good Luck! :-)

Re: AW: AW: Question on c14n exclusive

2004-05-27 Thread raul-info
On 27/05/2004, at 17:34, Dittmann Werner wrote: Raul, already tried that hack, the problem with that is that c14n outputs either a byte buffer that is the XML docu as String or as a node set - this has to be serialized then deadlock. Well, I try to ask the WSS guys how they think this problem c

AW: AW: Question on c14n exclusive

2004-05-27 Thread Dittmann Werner
Raul, already tried that hack, the problem with that is that c14n outputs either a byte buffer that is the XML docu as String or as a node set - this has to be serialized then deadlock. Well, I try to ask the WSS guys how they think this problem can be sloved. Regards, Werner > -Ursprün

Re: AW: Question on c14n exclusive

2004-05-27 Thread raul-info
> Raul, > thanks. > > However, the element that I create is a top level > elemen, i.e. an apex node (as far as I understand the > c14n specs). According to the WSS specs > > > * Finally, employ the canonicalization method specified as a parameter to > the transform to > serialize N to produce the

AW: Question on c14n exclusive

2004-05-27 Thread Dittmann Werner
Raul, thanks. However, the element that I create is a top level elemen, i.e. an apex node (as far as I understand the c14n specs). According to the WSS specs * Finally, employ the canonicalization method specified as a parameter to the transform to serialize N to produce the octet stream outpu

Re: Question on c14n exclusive

2004-05-27 Thread raul-info
> All, > > a question to the c14 gurus on the list. > > I set up an Element node and set the default namespace > to "" using the following code: > >elem.setAttributeNS(WSConstants.XMLNS_NS, "xmlns", ""); > > This seems to work. > > The element is c14n'ed using the following code: > >XMLUtil

Question on c14n exclusive

2004-05-27 Thread Dittmann Werner
All, a question to the c14 gurus on the list. I set up an Element node and set the default namespace to "" using the following code: elem.setAttributeNS(WSConstants.XMLNS_NS, "xmlns", ""); This seems to work. The element is c14n'ed using the following code: XMLUtils.circumventBug2650(e

RE: BASE 64

2004-05-27 Thread raul-info
>> and what about the sun.misc.BASE64Decoder > > And what if you're not on that JDK? The problem with using any other > decoder, including Xerces', is that not everybody uses those components. > Until Sun standardizes a BASE64 API in the JDK, there's no good answer. > > -- Scott > > What abou

Re: How to sign a DOMNode? Please, help me!

2004-05-27 Thread ivan . fontanals
Hi Berin,         thanks for your response.  It works well, now!           To the mentioned "Id not found" problem, I have read that in C++, the Id attribute inside the XML file must be  exactly like that: "Id="#ToSign">". My error was caused by this issue, cause I have the "ID" in uppercase mode

Re: bug in transcodeFromUTF8 function

2004-05-27 Thread Nedelcho Stanev
Hello, > Apologies - I should have read all my e-mail before I started replying. > np :) > > Would your input have had multi-byte characters in it? That would > explain why you got the error. yes :) you are right on 100%, i use windows-1251 codepage and multi-byte chars . regards, dech

Re: bug in transcodeFromUTF8 function

2004-05-27 Thread Berin Lautenbach
Apologies - I should have read all my e-mail before I started replying. Ignore last message on this :>. You are quite correct - I missed the logic for handling large buffers. I will update the CVS version this weekend. On the second problem (detailed below), bytesEaten is a reference that should

Re: decryption ?

2004-05-27 Thread Nedelcho Stanev
Hello Berin there are 2 bugs in sorce i fix them and sent to maillist fixed function decho - Original Message - From: "Berin Lautenbach" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 27, 2004 12:10 PM Subject: Re: decryption ? > Decho, > > No - there shouldn't be (I

Re: How to sign a DOMNode? Please, help me!

2004-05-27 Thread Berin Lautenbach
Ivan, Have a look-see at http://xml.apache.org/security/c/programming.html#simplehmac The main problem I can see is you are using newSignatureFromDOM which assumes a DOM Signature structure already exists in the document. You need to use the "newSignature" method, followed by createBlankSignatur

Re: decryption ?

2004-05-27 Thread Berin Lautenbach
Decho, No - there shouldn't be (I'm assuming the C++ library?). The library uses buffers to process input in chunks, so the size shouldn't matter. Can you give me some XML that isn't decrypting? Cheers, Berin Nedelcho Stanev wrote: Hello, Is there are some limit of size for encripted b

Re: [C++] Encoding: XSCryptCryptoBase64::encode()

2004-05-27 Thread Berin Lautenbach
Rude words. I think that was mentioned by someone else some time back. Thankyou for picking up the reason. I tend to equate bit-wise operations (unspecified ordering) with logical operations (defined ordering) and so get caught in this trap. Thanks! I will fix in CVS this weekend. Cheers,