Key generation parameters.

interface GenParams {
    curve?: "P-256" | "P-384" | "P-521";
    importPkcs8?: [pkcs8: Uint8Array, spki: Uint8Array];
}

Properties

Properties

curve?: "P-256" | "P-384" | "P-521"

EC curve.

Default Value

P-256
importPkcs8?: [pkcs8: Uint8Array, spki: Uint8Array]

Import PKCS#8 private key and SPKI public key instead of generating.