igcv3 - v1.1.0
    Preparing search index...

    ECC Provider for ECDSA and Ed25519 cryptographic operations.

    Uses dependency injection pattern. Instantiate directly or via composition root.

    const eccProvider = new EccProvider();
    const keyPair = await eccProvider.generateEcdsaKeyPair('P-256');
    Index

    Constructors

    Methods

    • Export a private key to PEM format.

      Parameters

      • privateKey: CryptoKey

        The CryptoKey to export

      Returns Promise<string>

      PEM-encoded private key

    • Export a private key to DER format.

      Parameters

      • privateKey: CryptoKey

        The CryptoKey to export

      Returns Promise<Buffer>

      DER-encoded private key as Buffer

    • Export a public key to PEM format.

      Parameters

      • publicKey: CryptoKey

        The CryptoKey to export

      Returns Promise<string>

      PEM-encoded public key

    • Get the signing algorithm for CSR based on key algorithm.

      Parameters

      Returns Algorithm | EcdsaParams

      The algorithm identifier for x509