W3C home > Mailing lists > Public > public-xmlsec@w3.org > June 2009

Re: ACTION-303 Correct doc on length of r and s

From: Pratik Datta <pratik.datta@oracle.com>
Date: Mon, 08 Jun 2009 14:11:44 -0700
Message-ID: <4A2D7E90.2010407@oracle.com>
To: Kelvin Yiu <kelviny@exchange.microsoft.com>
CC: "public-xmlsec@w3.org" <public-xmlsec@w3.org>
Although it probably obvious, I would prefer that make it explicit that 
one needs to round up when converting length in bits to bytes. Also 
using P-521 as an example instead of P-256 will make illustrate this 
rounding up.

Pratik

Kelvin Yiu wrote:
> The text in section 6.4.3 has been updated from:
>
> Integer to octet-stream conversion must be done according to the I2OSP operation defined in the RFC 2437 [ PKCS1 ] specification with the l parameter equal to the size of the output of the digest function in bytes (e.g. 32 for SHA-256).
>
> to:
>
> Integer to octet-stream conversion must be done according to the I2OSP operation defined in the RFC 2437 [ PKCS1 ] specification with the l parameter equal to the size of the base point order of the curve in bytes (e.g. 32 for the P-256 curve).
>
> Comments?
>
> Kelvin
>
>   
Received on Monday, 8 June 2009 21:19:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:43:58 GMT