Represents the PKCS#11 module

Hierarchy (view full)

Constructors

Properties

cryptokiVersion: Version

Cryptoki interface version

flags: number

Bit flags reserved for future versions. Must be zero for this version

lib: PKCS11

PKCS#11 module

libFile: string = ""

Path to PKCS#11 library

libName: string = ""

Name of PKCS#11 module

libraryDescription: string

Library description

libraryVersion: Version

Cryptoki library version number

manufacturerID: string

blank padded manufacturer ID

Methods

  • Closes PKCS#11 library

    Returns void

  • Indicates that an application is done with the Cryptoki library

    Returns void

  • Retrieves information about module and fills object fields

    Returns void

  • obtains a list of slots in the system

    Parameters

    • index: number

      index of an element in collection

    • Optional tokenPresent: boolean

      only slots with tokens. Default True

    Returns Slot

  • Parameters

    • Optional tokenPresent: boolean

      only slots with tokens. Default True

    Returns SlotCollection

  • Initializes the Cryptoki library

    Parameters

    • Optional options: InitializationOptions

      Initialization options

    Returns void

    Remarks

    The method doesn't throw CKR_CRYPTOKI_ALREADY_INITIALIZED error if library already initialized.

  • Loads PKCS#11 library

    Parameters

    • libFile: string

      The path to PKCS#11 library

    • Optional libName: string

      The name of PKCS#11 library

    Returns Module

    The new instance of Module

Generated using TypeDoc