W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > April to June 2008

Re: An error

From: Tom Gindin <tgindin@us.ibm.com>
Date: Mon, 7 Apr 2008 20:10:37 -0400
To: Mitar <mitar@tnode.com>
Cc: w3c-ietf-xmldsig@w3.org
Message-ID: <OFEDACDA92.5166B8B1-ON85257424.005CCDD2-85257425.0000F907@us.ibm.com>

        I think you misread it.  What the standard says is "The content of 
the DigestValue element shall be the base64 encoding of this bit string 
viewed as a 20-octet octet stream", which is correct.  It might help if we 
added the encoded length (28 characters, of which the last is an equal 
sign) to the description to prevent further misunderstanding. 

Tom Gindin





Mitar <mitar@tnode.com> 
Sent by: w3c-ietf-xmldsig-request@w3.org
04/07/2008 08:48 AM

To
w3c-ietf-xmldsig@w3.org
cc

Subject
An error






Hi!

I would like to report an error on:

http://www.w3.org/TR/xmldsig-core/#sec-MessageDigests

It is written that base64 encoding of a SHA-1 digest is a string of 
20-octets. It is a 28-octets long string. (160 bits / 6 bits rounded up 
+ 1 for '=')

Best regards


Mitar

[attachment "signature.asc" deleted by Tom Gindin/Watson/IBM] 
Received on Tuesday, 8 April 2008 00:12:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 April 2008 00:12:03 GMT