W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > October to December 2005

Re: Simple question about canonicalization

From: Rich Salz <rsalz@datapower.com>
Date: Mon, 3 Oct 2005 08:35:06 -0400 (EDT)
To: Rafa <rafael.hernandez@ya.com>
cc: "w3c-ietf-xmldsig@w3.org" <w3c-ietf-xmldsig@w3.org>
Message-ID: <Pine.LNX.4.44L0.0510030834120.30070-100000@smtp.datapower.com>

> Could it be that the internal representation of the canonicalized
> <SignedInfo> is not as simple as one byte per character although I  use
> only ASCII characters?

No, that is not the problem.

> In other words, what is the exact byte-stream I must use as input to the
> SHA1 algorithm?

Well, not to be silly about it, but it *is* defined in the C14N spec.

UTF8.

Beware of line-ending issues.

	/r$

-- 
Rich Salz                  Chief Security Architect
DataPower Technology       http://www.datapower.com
XS40 XML Security Gateway  http://www.datapower.com/products/xs40.html
Received on Monday, 3 October 2005 12:35:22 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Monday, 3 October 2005 12:35:25 GMT