Interface RSAKeyPairOptions<PubF, PrivF>

interface RSAKeyPairOptions<PubF, PrivF> {
    modulusLength: number;
    privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
        type: "pkcs1" | "pkcs8";
    };
    publicExponent?: number;
    publicKeyEncoding: {
        format: PubF;
        type: "pkcs1" | "spki";
    };
}

Type Parameters

Properties

modulusLength: number

Key size in bits

privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
    type: "pkcs1" | "pkcs8";
}
publicExponent?: number

Public exponent

0x10001
publicKeyEncoding: {
    format: PubF;
    type: "pkcs1" | "spki";
}