[xmlsec] Regarding error got when verifying the Hmac key signed document.

Venkataragavan Vijayakumar venkataragavan.v at gmail.com
Fri Sep 27 04:09:27 PDT 2013

Hi All,

I have written a code which will sign a particular element in a document
using xpath node, And it is successfully signed the element, but while
verifying the signed element it throws error.

Following is the code written

 dsigCtx = xmlSecDSigCtxCreate(NULL);

 dsigCtx->signKey = CreateHmacKey(keybuf, keysize);

  /*signing */

 xmlSecDSigCtxSign(dsigCtx, g_SignatureNode)  ; //Signing is perfect and i
am getting the signed document.

 /* Verify signature */

 xmlSecDSigCtxVerify(dsigCtx, g_SignatureNode) // Execution fails here.

and then trows error:
== NULL:error=100:assertion:
library function failed:

Please correct me , if i am doing anything wrong.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20130927/ad5a49db/attachment.html>

More information about the xmlsec mailing list