-
Notifications
You must be signed in to change notification settings - Fork 60
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
Comments
This is referenced by PR #16. |
Blocked on #27 |
The HKDF algorithm introduced by #27 requires an explicit salt to be provided. Options for closing this issue:
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. |
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. |
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. |
In that case, we can close this issue without changes. |
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?)
The text was updated successfully, but these errors were encountered: