New issue
Advanced search Search tips

Issue 714847 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

In Web Crypto, deriveBits() for HKDF with a non-multiple of 8 should throw an OperationError

Project Member Reported by eroman@chromium.org, Apr 24 2017

Issue description

See 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.
 

Comment 2 by eroman@chromium.org, Apr 28 2017

Status: Fixed (was: Assigned)
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