Open patrickfav opened 6 years ago
Any chance this will be merged?
Please note that salt
and info
are required as per webcrypto spec: https://www.w3.org/TR/WebCryptoAPI/#hkdf-params
In addition, HKDF-CRT was replaced with HKDF, and I already addressed it with https://github.com/diafygi/webcrypto-examples/pull/54
Thanks for the heads up. Thats interesting as the the RFC defines it as optional. Your PR is probably better then. Unfortunately it seems the maintainer has no interest in merging these PRs anytime soon.
These are according to the HKDF spec: https://tools.ietf.org/html/rfc5869
There is a extract and a expand phase. The
salt
(akalabel
) is used in the extract phase:and the
info
(akacontext
) is used in the expand phase: