mock

package
v0.0.0-...-48496ca Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HSM

type HSM struct {
	ModulePath, TokenLabel, PIN, SOPIN, WorkingDir string
}

func NewHSM

func NewHSM() (*HSM, error)

func (*HSM) Destroy

func (hsm *HSM) Destroy() error

func (*HSM) Import

func (hsm *HSM) Import(key, label string) error

type KeyProvider

type KeyProvider struct {
	KeyDir string
}

func NewKeyProvider

func NewKeyProvider(dir string) *KeyProvider

func (*KeyProvider) FindKeyPair

func (kp *KeyProvider) FindKeyPair(key crypto.PublicKey) (crypto.Signer, error)

func (*KeyProvider) GenerateKeyPair

func (kp *KeyProvider) GenerateKeyPair(label string, algo string, size int) (crypto.Signer, error)

Jump to

Keyboard shortcuts

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