hsm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YubiHSMSigner

type YubiHSMSigner struct {
	// contains filtered or unexported fields
}

func NewYubiHSMSigner

func NewYubiHSMSigner(conn string, authId uint16, authPassword string, keyId uint16) (*YubiHSMSigner, error)

func (*YubiHSMSigner) Close

func (hsm *YubiHSMSigner) Close()

Close closes the connection to the HSM

func (*YubiHSMSigner) Public

func (hsm *YubiHSMSigner) Public() crypto.PublicKey

func (*YubiHSMSigner) Sign

func (hsm *YubiHSMSigner) Sign(_ io.Reader, msg []byte, _ crypto.SignerOpts) ([]byte, error)

Jump to

Keyboard shortcuts

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