pkcs11 2.40.0-alpha.1

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

pkcs11

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

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 [3].
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 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>

...
}

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

  • 112 downloads total

Score:
0.5
Short URL:
pkcs11.dub.pm