Skip to content

crypto: check ed/x webcrypto key import algorithm names

This fixes a couple things in the webcrypto experimental module

  • makes sure Ed* keys algorithms are NODE-ED*
  • makes sure X* keys algorithms are ECDH
  • doc change to clarify the nodeEdKeyImportParams.public parameter is only used with the raw format.

Previously you couldn't import these using the node.keyObject format at all despite the support matrix saying so.

Merge request reports

Loading