| ModuleLoad Method |
Load a PKCS#11 driver module
Namespace: PdfTools.Crypto.Providers.Pkcs11Assembly: PdfTools (in PdfTools.dll) Version: 1.6.0+e1db8f4bf6125495a2d29513486ea3e61205c81b
Syntax 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
ModuleExceptions Exception | Condition |
---|
NotFoundException | The library cannot be found. |
ExistsException | The module has been loaded already by this application. |
ArgumentException | The given library is not a PKCS#11 driver module. |
ArgumentNullException | if library is . |
See Also