Generate a signature.

  • Generate a signature.

    Parameters

    • algorithm: SigningAlgorithm

      Signing algorithm and parameters

    • key: string

      A PEM-encoded private key

    • plaintext: ArrayBuffer

      Input data that will be signed

    Returns ArrayBuffer

    Will throw an error if the key is not compatible with the signing algorithm or if an unknown algorithm is used.

MMNEPVFCICPMFPCPTTAAATR