p11mod

package
v0.0.2-0...-fb35a7e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2022 License: LGPL-2.1 Imports: 7 Imported by: 2

README

p11mod: high-level Go library for creating PKCS#11 modules

p11mod allows you to create PKCS#11 modules in Go, and is easier to use and more idiomatic to Go than pkcs11mod. You implement your PKCS#11 functions by providing a struct that implements the same API as p11.Module from Miek Gieben's p11 package; p11mod takes care of exposing this as a C ABI library (using pkcs11mod under the hood).

Building

Prerequisites:

  1. Ensure you have the Go tools installed.
  2. Build pkcs11mod (see parent directory).
  3. You can import "github.com/namecoin/pkcs11mod/p11mod" from your Go PKCS#11 module.

Example usage

See the p11proxy sibling directory for an example of how to use p11mod.

Tracing

Set the environment variable P11MOD_TRACE=1 to enable debug tracing. The trace will be outputted to the log file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetBackend

func SetBackend(b p11.Module, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL