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

    • OptionaltokenPresent: boolean

      only slots with tokens. Default True

    Returns Slot

  • Parameters

    • OptionaltokenPresent: boolean

      only slots with tokens. Default True

    Returns SlotCollection

  • Initializes the Cryptoki library

    Parameters

    • Optionaloptions: InitializationOptions

      Initialization options

    Returns void

    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

    • OptionallibName: string

      The name of PKCS#11 library

    Returns Module

    The new instance of Module