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

webcrypto: graduate from experimental, expose via crypto #37969

Closed
wants to merge 2 commits into from

Commits on Mar 29, 2021

  1. crypto: expose subtle and getRandomValues from crypto

    In the browser, the `crypto` global exposes `subtle` and
    `getRandomValues` as properties. In the Node.js impl, those
    require an additional indirection via `crypto.webcrypto.*`.
    This commit exposes aliases to promote cross-environment
    isomorphism.
    
    Note: In the browser, the `CryptoKey` object is also exposed
    as a global. I decided not to do that here because it requires
    a larger change to the internal `node_crypto` binding because
    of the need to register external references. That can be done
    in a separate PR but it's a much lower priority.
    
    Signed-off-by: James M Snell <[email protected]>
    jasnell committed Mar 29, 2021
    Configuration menu
    Copy the full SHA
    05c9362 View commit details
    Browse the repository at this point in the history
  2. crypto: graduate webcrypto to stable

    Signed-off-by: James M Snell <[email protected]>
    jasnell committed Mar 29, 2021
    Configuration menu
    Copy the full SHA
    fce125d View commit details
    Browse the repository at this point in the history