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


An error


I would like to report an error on:


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


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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:21:41 UTC