W3C home > Mailing lists > Public > public-webcrypto@w3.org > May 2016

Testing progress for generateKey

From: Charles Engelke <w3c@engelke.com>
Date: Fri, 13 May 2016 17:22:27 -0400
Message-ID: <CAFeVzdy8R1DEcOMOwQR657FJxMc9kTUn00ZCxiQM9XLTr4nE2g@mail.gmail.com>
To: "public-webcrypto@w3.org" <public-webcrypto@w3.org>
Tests are now available for all supported algorithms for generateKey.
They run as individual pages and under the test
including in workers.

Chrome passes all success tests except for those involving AES with
192-bit keys (which it does not support). Chrome fails some failure
tests by reporting the wrong error in some cases where there are two
bad parameters. It seems it may be checking them in a different order
than in the spec. That has been reported as issue 611801, at

Firefox passes all success tests. I used Firefox nightly because it
has RSA-PSS support, which will apparently be in the next regular
release. However, Firefox generation of RSA keys is several times
slower than in Chrome, so the tests take 10-30 minutes to run.

Firefox fails most failure tests. In one case, Firefox seems to ignore
bad usage parameters instead of throwing an error (bug 1270634 at
https://bugzilla.mozilla.org/show_bug.cgi?id=1270634). In another case
it reports the wrong error when given certain bad parameters (bug
1270599 at https://bugzilla.mozilla.org/show_bug.cgi?id=1270599).
There may be others; it takes a long time to run the tests and when
there are thousands of failures for just these two root causes it
takes a while to check to see if there are others.

Edge is far from complete, though it does pass many of the success
tests as of now. I have only reported one bug to Microsoft: the
CryptoKey object's algorithm name is set to whatever parameter is
given to generateKey, instead of adjusted to match the official
capitalization. That's issue 7444732 at

I haven't tested Safari because it uses a prefixed implementation.

I've submitted the tests as a pull request and updated them based on
feedback from Jim. I'm not sure of the next steps for having them

Received on Friday, 13 May 2016 21:22:55 UTC

This archive was generated by hypermail 2.3.1 : Friday, 13 May 2016 21:22:55 UTC