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

[Bug 25388] Boolean arguments

From: <bugzilla@jessica.w3.org>
Date: Tue, 29 Apr 2014 10:12:36 +0000
To: public-webcrypto@w3.org
Message-ID: <bug-25388-7213-6Sl1pIeYm5@http.www.w3.org/Bugs/Public/>

--- Comment #3 from Anne <annevk@annevk.nl> ---
I would not suggest to nest objects, that does indeed seem bad. Can it be a
keyUsages parameter with values as per Mark's suggestion?

The main problem is that if you look at a call such as

window.crypto.subtle.deriveKey({ alg }, key, { derived alg }, false, [
"encrypt" ]);

it is not clear what is going on. The same with the last argument being a
length of sorts. 

I would need a much better understanding of the problem space to give more
informed feedback as to what a better API would be. :-(

You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 29 April 2014 10:12:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:02:42 UTC