You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Milan Tomic <mi...@setcce.org> on 2004/01/11 13:26:02 UTC
HMAC
This code:
DOMNode *sigNode = findDSIGNode(doc, "Signature");
DSIGSignature * sig = prov.newSignatureFromDOM(theDOM, sigNode);
bool useHMAC = (sig->getSignatureMethod() == SIGNATURE_HMAC);
Allways says that useHMAC == false, but here is how
SignatureMethod was defined:
<ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1" />
Anyone have any idea why?
Thank you,
Milan
RE: HMAC
Posted by Milan Tomic <mi...@setcce.org>.
Thank you, Berin.
Re: HMAC
Posted by Berin Lautenbach <be...@wingsofhermes.org>.
Milan,
Have you called sig->load();?
Cheers,
Berin
Milan Tomic wrote:
>
> This code:
>
> DOMNode *sigNode = findDSIGNode(doc, "Signature");
> DSIGSignature * sig = prov.newSignatureFromDOM(theDOM, sigNode);
> bool useHMAC = (sig->getSignatureMethod() == SIGNATURE_HMAC);
>
> Allways says that useHMAC == false, but here is how
> SignatureMethod was defined:
>
> <ds:SignatureMethod
> Algorithm="*http://www.w3.org/2000/09/xmldsig#hmac-sha1*" />
>
> Anyone have any idea why?
>
> Thank you,
> Milan
>