pkcs11 2.40.0-alpha.2

Twofold (deimos/derelict) binding to PKCS #11 Cryptoki interface


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

Build state

Build Status Coverage Status

pkcs11

Twofold binding to PKCS #11 Cryptoki interface (Version 2.40 Plus Errata 01) [1 PKCS#11]

configuration 'deimos': Static binding, the "import-only" C header's declarations.
configuration 'derelict': Dynamic binding (DerelictUtil), the header's declarations + derelict runtime loading (any pkcs#11 implementing shared library) interface.

For more information on dynamic binding and Your options with derelict-util, look at [4 Derelict].
Here's some sample code:

// Written in the D programming language
// configuration 'derelict'
import std.stdio;
import pkcs11;

int main() {
PKCS11.load(); // makes use of default: opensc-pkcs11.so/.dll [5 OpenSC] or do specify explicitely

CKRV rv;
if ((rv=C
Initialize(NULLPTR)) != CKROK) {

writeln("Failed to initialze Cryptoki");<br>
return 1;<br>

}
scope(exit)

C_Finalize(NULL_PTR);<br>

...
}

1 PKCS#11
2 PKCS#11 headers
3 PKCS#11 programming intro 4 Derelict
5 OpenSC, opensc.conf/debug/debug_file, inspect (high-level) Cryptoki communication
(6 Inspect (low-level) PC/SC communication)

Authors:
  • Carsten Blüggel
Dependencies:
none
Versions:
2.40.0-alpha.4 2019-Jun-21
2.40.0-alpha.3 2017-Mar-19
2.40.0-alpha.2 2017-Feb-26
2.40.0-alpha.1 2017-Feb-17
~master 2019-Jun-21
Show all 5 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 126 downloads total

Score:
0.5
Short URL:
pkcs11.dub.pm