Class Decipher

Represents decryption operation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

blockSize: number = DEFAULT_BLOCK_SIZE

Block size

lib: PKCS11

PKCS#11 module

session: Session

Session

Methods

  • Finishes a multiple-part decryption operation

    Returns Buffer

    Final decrypted block

  • Decrypts encrypted data in a single part

    Parameters

    • data: Buffer

      Encrypted data

    • dec: Buffer

      Allocated buffer for decrypted data

    Returns Buffer

    Decrypted data

  • Decrypts encrypted data in a single part

    Parameters

    • data: Buffer

      Encrypted data

    • dec: Buffer

      Allocated buffer for decrypted data

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

      Async callback function with decrypted data

        • (error, data): void
        • Parameters

          • error: Error
          • data: Buffer

          Returns void

    Returns void

  • Continues a multiple-part decryption operation

    Parameters

    • data: Buffer

      Encrypted data

    Returns Buffer

    Decrypted block