RE: [saml-dev] Trouble Verifying the XML Digest

From
Scott Cantor <>
Date
2009-12-17T03:17:39+00:00
ID
007a01ca7ec7$77f55940$67e00bc0$@
Thread
RE: [saml-dev] Trouble Verifying the XML Digest
Mark Fruhling wrote on 2009-12-16:
> It's my understanding that the digest should be the
> assertion => SHA-1 Hashed => Base 64 encoded.

To a degree, but that grossly oversimplifies how you verify an XML
Signature, specifically the "assertion => hash" part. That requires XML
Canonicalization. You can't just feed the XML directly into a hash, there's
virtually no chance you'll end up with the same octets.

(Maybe you know that, but when people ask questions like that, they usually
don't.)

-- Scott