In Web Crypto, deriveBits() for HKDF with a non-multiple of 8 should throw an OperationError |
||
Issue descriptionSee https://codereview.chromium.org/2838603002/ for context, which points out the problem. This isn't detailed in the spec, but that is likely a spec bug: https://github.com/w3c/webcrypto/issues/184 for spec Based on how PBKDF2 is defined, and the general philosophy that enforcements on bit-lengths be handled internal to the algorithm, and the W3C test itself, it is fairly clear that the intent is to throw an error when HKDF is called with a non-multiple of 8 bits.
,
Apr 28 2017
Side note: I didn't end up having to rebase WPT tests, making me wonder if those tests are even running at all, or just in a manner I don't understand... Will check that out, but otherwise this is fixed. |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Apr 26 2017