Re: [whatwg] [html5] r5835 - [giow] (1) Make workers get the online and offline events also.

2011-02-05 Thread Simon Pieters
On Sat, 05 Feb 2011 01:36:33 +0100, wha...@whatwg.org wrote: Author: ianh Date: 2011-02-04 16:36:32 -0800 (Fri, 04 Feb 2011) New Revision: 5835 Modified: complete.html index source Log: [giow] (1) Make workers get the online and offline events also. Also add ononline and onoffline

Re: [whatwg] Cryptographically strong random numbers

2011-02-05 Thread Dirk-Willem van Gulik
On 5 Feb 2011, at 00:42, Adam Barth wrote: ... cryptographically strong PRNG Would it be useful to very clearly qualify this - and put a boundary around this potentially unsolvable problem ? I.e. a pseudo random generator which meeds to exceeds requirements X, Y and Z from NIST SP 800-90 or

Re: [whatwg] Cryptographically strong random numbers

2011-02-05 Thread Boris Zbarsky
On 2/4/11 11:20 PM, Adam Barth wrote: I'm not sure what else is exposed on Crypto, but having this available to workers certainly make sense. I was assuming that the crypto object in workers wouldn't have anything else on it, for now. -Boris

Re: [whatwg] Cryptographically strong random numbers

2011-02-05 Thread Boris Zbarsky
On 2/5/11 1:55 AM, Roger Hågensen wrote: On 2011-02-05 04:39, Boris Zbarsky wrote: In general, I suspect creating a good definition for the float version of this API may be hard. Not really, usually it is a number from 0.0 to 1.0, which would map to say the same as 0 to whatever max 64bit is.

Re: [whatwg] Cryptographically strong random numbers

2011-02-05 Thread Dirk-Willem van Gulik
On 5 Feb 2011, at 16:37, Boris Zbarsky wrote: The question is, do people want cryptographically secure random numbers for crypto, or something else? As you say, we need to understand the use cases. If you want to use them for crypto - you need to have a very clear contract. Otherwise they

Re: [whatwg] HTML5 ISSUE-120 rdfa-prefixes : Proposal to use RDFa according to spec

2011-02-05 Thread Aryeh Gregor
On Fri, Feb 4, 2011 at 4:05 PM, Danny Ayers danny.ay...@gmail.com wrote: I was writing in the context of Change Proposal ISSUE-120 [1], apologies if this is out of scope for the WHATWG. [1] http://www.w3.org/html/wg/tracker/issues/120 The WHATWG does not use the W3C HTMLWG's Decision Policy.

Re: [whatwg] Specs for window.atob() and window.btoa()

2011-02-05 Thread Aryeh Gregor
On Fri, Feb 4, 2011 at 6:59 PM, Simon Pieters sim...@opera.com wrote: Is the compat problem for not throwing for whitespace or for not throwing for other garbage? If it's for other garbage, we could allow whitespace but throw for other garbage. (The bugs I can find in our database with a quick

Re: [whatwg] Specs for window.atob() and window.btoa()

2011-02-05 Thread Jonas Sicking
On Sat, Feb 5, 2011 at 4:29 PM, Aryeh Gregor simetrical+...@gmail.com wrote: On Fri, Feb 4, 2011 at 6:59 PM, Simon Pieters sim...@opera.com wrote: Is the compat problem for not throwing for whitespace or for not throwing for other garbage? If it's for other garbage, we could allow whitespace

Re: [whatwg] Cryptographically strong random numbers

2011-02-05 Thread Boris Zbarsky
On 2/5/11 9:08 PM, Roger Hågensen wrote: If you really wanted a float, and really wanted minimal issue with float behavior then creating a random um... mantissa.?... should allow a better 0.0 to 1.0 than the divide shown further up. That's the thing. The valid mantissas for IEEE floats are

Re: [whatwg] Specs for window.atob() and window.btoa()

2011-02-05 Thread Joshua Cranmer
On 02/05/2011 08:29 PM, Jonas Sicking wrote: So my first question is, can someone give examples of sources of base64 data which contains whitespace? The best guess I have is base64-encoding MIME parts, which would be hardwrapped every 70-80 characters or so. -- Beware of bugs in the above

Re: [whatwg] Cryptographically strong random numbers

2011-02-05 Thread Roger Hågensen
On 2011-02-06 03:34, Boris Zbarsky wrote: The context in which I've seen people ask for cryptographically secure Math.random are cases where one script can tell what random numbers another script got by examining the sequence of random numbers it's getting itself. But I was never told what

Re: [whatwg] Cryptographically strong random numbers

2011-02-05 Thread Roger Hågensen
On 2011-02-05 11:10, Adam Barth wrote: On Fri, Feb 4, 2011 at 9:00 PM, Cedric Viviercedr...@neonux.com wrote: getRandomValues(in ArrayBufferView data) Fills a typed array with a cryptographically strong sequence of random values. The length of the array determines how many cryptographically

Re: [whatwg] Cryptographically strong random numbers

2011-02-05 Thread Cedric Vivier
On Sun, Feb 6, 2011 at 11:34, Roger Hågensen resca...@emsai.net wrote: But getRandomValues(in ArrayBufferView data) seem to indicate that each byte (value) is random, limited to an array of 8bit data?. In the context of typed arrays, a value depends of the type of the ArrayBufferView.

Re: [whatwg] Cryptographically strong random numbers

2011-02-05 Thread Glenn Maynard
On Sat, Feb 5, 2011 at 11:07 PM, Cedric Vivier cedr...@neonux.com wrote: read(FD(/dev/random), PTR(arraybufferview-data), arraybufferview-byteLength) More accurately, /dev/urandom, since this is a synchronous API that shouldn't block. This should be made explicit if this gets specced. I

Re: [whatwg] Specs for window.atob() and window.btoa()

2011-02-05 Thread Joshua Bell
On Sat, Feb 5, 2011 at 6:37 PM, Joshua Cranmer pidgeo...@verizon.netwrote: On 02/05/2011 08:29 PM, Jonas Sicking wrote: So my first question is, can someone give examples of sources of base64 data which contains whitespace? The best guess I have is base64-encoding MIME parts, which would be

Re: [whatwg] Cryptographically strong random numbers

2011-02-05 Thread Roger Hågensen
On 2011-02-06 05:07, Cedric Vivier wrote: On Sun, Feb 6, 2011 at 11:34, Roger Hågensenresca...@emsai.net wrote: But getRandomValues(in ArrayBufferView data) seem to indicate that each byte (value) is random, limited to an array of 8bit data?. In the context of typed arrays, a value depends of