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:
 
func=xmlSecDSigCtxProcessSignatureNode:file=xmldsig.c:line=463:obj=unknown:subj=dsigCtx->signValueNode
== NULL:error=100:assertion:
func=xmlSecDSigCtxVerify:file=xmldsig.c:line=366:obj=unknown:subj=xmlSecDSigCtxSigantureProcessNode:error=1:xmlsec
library function failed:

Please correct me , if i am doing anything wrong.

Thanks,
Venkat.
_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to