Represents signing operation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

lib: PKCS11

PKCS#11 module

session: Session

Session

Methods

  • Finishes a multiple-part signature operation, returning the signature

    Returns Buffer

    The signature value

  • initializes a signature (private key encryption) operation

    Parameters

    Returns void

  • Signs (encrypts with private key) data in a single part

    Parameters

    • data: CryptoData

      The data to be signed

    Returns Buffer

    Signature value

  • Signs (encrypts with private key) data in a single part

    Parameters

    • data: CryptoData

      The data to be signed

    • cb: ((error: Error, data: Buffer) => void)

      Async callback function with signature value

        • (error, data): void
        • Parameters

          • error: Error
          • data: Buffer

          Returns void

    Returns void

  • Continues a multiple-part signature operation, where the signature is (will be) an appendix to the data

    Parameters

    • data: CryptoData

      The data to be signed

    Returns void