pkcs11

package
v0.0.0-...-566f305 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2015 License: MIT, BSD-2-Clause Imports: 3 Imported by: 2

Documentation

Overview

Package pkcs11 implements support for PKCS #11 signers. If the package has not been built with the `pkcs11` tag, the `New` function will be a stub.

Index

Constants

View Source
const Enabled = false

Enabled is set to true if PKCS #11 support is present.

Variables

This section is empty.

Functions

func New

func New(caCertFile string, policy *config.Signing, cfg *Config) (signer.Signer, error)

New always returns an error. If PKCS #11 support is needed, the program should be built with the `pkcs11` build tag.

Types

type Config

type Config struct {
	Module string
	Token  string
	PIN    string
	Label  string
}

Config contains configuration information required to use a PKCS #11 key.

Jump to

Keyboard shortcuts

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