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.
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.
Convert a public/private key pair in JWK to WebCrypto's binary representation.
Convert a JWK key representation of a Key to WebCrypto's representation.
Crypto identifier values that are relevant for this package. "rsa" is an alias for "rsa-pss"; "ed25519" is an alias for "eddsa".
Usage
import * as mod from "lib/keys.ts";