You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Web Crypto API - subtle.deriveKey doesn't return promise with ArrayBuffer + doc example bug #38115
The documentation says that it should, but instead it returns a promise with Buffer.
Also the example in the documentation called "Deriving bits and keys" has a bug. In subtle.importKey it is missing 'deriveKey' causing subtle.deriveKey to fail.
Activity
aduh95 commentedon Apr 6, 2021
Would you be interested in sending a PR?
jasnell commentedon Apr 6, 2021
The
deriveBitsin the example can be replaced withderiveKey:-)JoakimCh commentedon Apr 6, 2021
Sadly I'm not very good with Git yet, hence I would prefer that someone else does that.
doc: replaced intended deriveKey to parameter instead of deriveBits
crypto: fix webcrypto derive(Bits|Key) resolve values and docs
panva commentedon Apr 12, 2021
Resolved by 896dc39
crypto: fix webcrypto derive(Bits|Key) resolve values and docs
crypto: fix webcrypto derive(Bits|Key) resolve values and docs