[xmlsec] invalid data:data and digest do not match

Aleksey Sanin aleksey at aleksey.com
Thu Oct 9 09:12:28 PDT 2008

This error means that c14n data do not match. With xmlsec
you can actually get a dump of c14n data right before digest
is calculated (see xmlsec command line options for details).
Get the same dump from the signer and compare.


weizhong qiang wrote:
> hello,
> When I verify the signature I got the following error:
> func=xmlSecOpenSSLEvpDigestVerify:file=digests.c:line=229:obj=sha1:subj=unknown:error=12:invalid 
> data:data and digest do not match
> The point is I can use the same code to verify some other xml signature 
> except this one which I got response from other's Web Service.
> Could you check the following xml piece to see whether  there is 
> something  which cause this error? Could it possible caused by 
> "<ec:InclusiveNamespaces 
> xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="ds saml 
> xs"/>" which seems not exist in my own generating response.
> Thanks
> Weizhong Qiang

More information about the xmlsec mailing list