Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1011 Bytes

util_generate_key_pair.generatekeypairoptions.md

File metadata and controls

33 lines (19 loc) · 1011 Bytes

Interface: GenerateKeyPairOptions

util/generate_key_pair.GenerateKeyPairOptions

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.

Defined in: util/generate_key_pair.ts:10


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.

Defined in: util/generate_key_pair.ts:16