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

Re: Updated spec examples with Futures

From: Aymeric Vitte <vitteaymeric@gmail.com>
Date: Sat, 27 Apr 2013 01:23:32 +0200
Message-ID: <517B0C74.7070307@gmail.com>
To: rsleevi@chromium.org
CC: Alex Russell <slightlyoff@google.com>, public-webcrypto@w3.org

Le 25/04/2013 17:02, Ryan Sleevi a écrit :
>
> As mentioned before, no.
>
> >
> > var h=window.crypto.digest("sha1");
> > var res1=h.process(stream1);
> > res1.finish().done(
> >     function() {
> >         console.log(this.result); //result 1
> >     }
> > );
> > var res2=res1.process(stream2);
> > res2.finish().done(
> >     function() {
> >         console.log(this.result); //result 1+2
> >     }
> > );
> >
>

OK, waiting to see the new spec, here the question is not if I can do 
this or not, I can, but this will not produce the correct result

Regards,

-- 
jCore
Email :  avitte@jcore.fr
iAnonym : http://www.ianonym.com
node-Tor : https://www.github.com/Ayms/node-Tor
GitHub : https://www.github.com/Ayms
Web :    www.jcore.fr
Webble : www.webble.it
Extract Widget Mobile : www.extractwidget.com
BlimpMe! : www.blimpme.com
Received on Friday, 26 April 2013 23:21:15 UTC

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