Click or drag to resize
Pdftools logo

ModuleLoad Method

Load a PKCS#11 driver module


Namespace: PdfTools.Crypto.Providers.Pkcs11
Assembly: PdfTools (in PdfTools.dll) Version: 1.1.0.0
Syntax
C#
public static Module Load(
	string library
)

Parameters

library  String

The name or path to the driver module (middleware). This can be found in the documentation of your cryptographic device.

Examples:

  • For Securosys SA Primus HSM or CloudsHSM use primusP11.dll on Windows and libprimusP11.so on Linux.
  • For Google Cloud HSM (Cloud KMS) use libkmsp11.so and CreateSignatureFromKeyLabel(String, Stream)
  • For SafeNet Luna HSM use cryptoki.dll on Windows or libCryptoki2_64.so on Linux/UNIX.
  • The CardOS API from Atos (Siemens) uses siecap11.dll
  • The IBM 4758 cryptographic coprocessor uses cryptoki.dll
  • Devices from Aladdin Ltd. use etpkcs11.dll

Return Value

Module
Exceptions
ExceptionCondition
NotFoundExceptionThe library cannot be found.
ExistsExceptionThe module has been loaded already by this application.
ArgumentExceptionThe given library is not a PKCS#11 driver module.
ArgumentNullExceptionif library is .
See Also