jose/docs/interfaces/_util_generate_key_pair_.generatekeypairoptions.md
2020-12-14 16:43:16 +01:00

920 B

Interface: GenerateKeyPairOptions

Index

Properties

Properties

crv

Optional crv: string

Defined in src/util/generate_key_pair.ts:10

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.


modulusLength

Optional modulusLength: number

Defined in src/util/generate_key_pair.ts:16

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.