Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 27473 - Explicit salts for the algorithm formerly known as HKDF #42

Closed
mwatson2 opened this issue May 23, 2016 · 6 comments
Closed

Comments

@mwatson2
Copy link
Collaborator

Bug 27473:

Pre-CR, I've just removed this Editorial Note. I assume we should address this during CR when we'll know if explicit salts are supported in terms of interop.


Editorial note

The definition of HKDF allows the caller to supply an optional pseudorandom salt value, which is used as the key during the extract phase. If this value is not supplied, an all zero string is used instead. However, support for an explicit salt value is not widely implemented in existing APIs, nor is it required by existing usages of HKDF. Should this be an optional parameter, and if so, what should the behavior be of a user agent that does not support explicit salt values (is it conforming or non-conforming?)

@mwatson2
Copy link
Collaborator Author

This is referenced by PR #16.

@mwatson2
Copy link
Collaborator Author

Blocked on #27

@mwatson2
Copy link
Collaborator Author

mwatson2 commented Sep 8, 2016

The HKDF algorithm introduced by #27 requires an explicit salt to be provided.

Options for closing this issue:

  1. No action (explicit salt must always be provided)
  2. Make the salt optional (the RFC defines what to do in the case it is not provided)
  3. Remove the salt altogether (the RFC defines what to do in this case)

The OP indicates that support for explicit salts is not widespread. If we opt for no action, implementations which do not support explicit salts will be non-compliant.

@jimsch
Copy link
Collaborator

jimsch commented Sep 8, 2016

The original pull request was changed from having the salt be optional to making it required. Not having salt the salt as an option is a really bad idea.

Take action 1.

@engelke
Copy link

engelke commented Sep 12, 2016

The test assumes that the salt is required, and checks that an error is thrown if it is missing. Chrome at least seems to enforce that properly.

@mwatson2
Copy link
Collaborator Author

In that case, we can close this issue without changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants