W3C home > Mailing lists > Public > public-webcrypto@w3.org > April 2014

[Bug 25387] BigInteger

From: <bugzilla@jessica.w3.org>
Date: Fri, 18 Apr 2014 15:43:21 +0000
To: public-webcrypto@w3.org
Message-ID: <bug-25387-7213-sY5VjoQs6k@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25387

Boris Zbarsky <bzbarsky@mit.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bzbarsky@mit.edu

--- Comment #1 from Boris Zbarsky <bzbarsky@mit.edu> ---
Anne, I don't think this is defining a view.  What this is saying is that the
Uint8Array holds the bytes that represent an integer, in big-endian order.

So for example, the representation of 5 million would be a Uint32Array of
length three, containing the values 76, 227, 215, since 76*255^2 + 227*255 +
215 = 5000000.  Consumers would be expected to do that sort of computation
themselves to reconstruct the integer.  That's why the endianness matters.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Friday, 18 April 2014 15:43:22 UTC

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