Files
jose/docs/interfaces/key_generate_key_pair.GenerateKeyPairOptions.md
2023-04-12 18:54:17 +02:00

1.3 KiB

Interface: GenerateKeyPairOptions

💗 Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


Table of contents

Properties

Properties

crv

• Optional crv: string

The EC "crv" (Curve) or OKP "crv" (Subtype of Key Pair) value to generate. The curve must be both supported on the runtime as well as applicable for the given JWA algorithm identifier.


extractable

• Optional extractable: boolean

(Only effective in Web Crypto API runtimes) The value to use as SubtleCrypto.generateKey() extractable argument. Default is false.


modulusLength

• Optional modulusLength: number

A hint for RSA algorithms to generate an RSA key of a given modulusLength (Key size in bits). JOSE requires 2048 bits or larger. Default is 2048.