Key management operations: creation in binary Crypto, JWK, or Multikey formats. Note that Multikeys are only defined for ecdsa and eddsa; it cannot be used for rsa algorithms.

The module also includes functions to convert JWK to and from binary crypto. See the separate multikey-webcrypto for similar operations with Multikey formats.

Functions

f
generateKeys

Generate a private/public key pair in one of the ecdsa/eddsa/RSA crypto algorithms (the term Ed25519 can also be used for eddsa). The result is the WebCrypto format for keys.

f
JWKeyPairToCrypto

Convert a public/private key pair in JWK to WebCrypto's binary representation.

f
JWKeyToCrypto

Convert a JWK key representation of a Key to WebCrypto's representation.

Type Aliases

T
CryptoAlgorithm

Crypto identifier values that are relevant for this package. "rsa" is an alias for "rsa-pss"; "ed25519" is an alias for "eddsa".