yubikey

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

based upon https://github.com/smallstep/crypto

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YubiKey

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

func New

func New() (*YubiKey, error)

New initializes a new YubiKey KMS.

func (*YubiKey) Close

func (k *YubiKey) Close() error

Close releases the connection to the YubiKey.

func (*YubiKey) CreateSigner

func (k *YubiKey) CreateSigner() (crypto.Signer, error)

CreateSigner creates a signer using the key present in the YubiKey signature slot.

func (*YubiKey) GetPublicKey

func (k *YubiKey) GetPublicKey() (crypto.PublicKey, error)

GetPublicKey returns the public key present in the YubiKey signature slot.

func (*YubiKey) GetSlot

func (k *YubiKey) GetSlot() string

func (*YubiKey) SetSlot

func (k *YubiKey) SetSlot(slot string)

Jump to

Keyboard shortcuts

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