[prev in list] [next in list] [prev in thread] [next in thread]
List: xml-security-dev
Subject: Re: get canonicalized xml hash
From: Peter Lin <peterlingoal () gmail ! com>
Date: 2010-03-09 4:47:49
Message-ID: 4B95D2F5.7080207 () gmail ! com
[Download RAW message or body]
Yes, I know the hash will be calculated when generating a signature.
However, it will be troublesome since at least a private key and a
certificate will be needed. ( I tried to use RSA_NONE when calling
createBlankSignature, but I've got No signing algorithm exception
afterwards).
Actually there's a API class XSECC14n20010315 can do the
canonicalization job, which is just not well documented. I found a
sample binary "c14n" in xml-security-c source code and it's actually
very easy. Now I've got correct result.
Thank you all.
On 03/08/2010 11:31 PM, Scott Cantor wrote:
>> I need to obtain a canonicalized xml hash from a DOMNode with
>>
> xml-security-
>
>> c. Is there way to achieve it?
>>
> I don't know what you mean by that exactly, but the library can canonicalize
> a DOM node and it can produce a hash internally when it's generating a
> signature, but you'd have to mess around with the internal APIs to get it to
> generate a hash explicitly I believe.
>
> -- Scott
>
>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic