pinentry

package
v0.16.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPin

func GetPin(k SecurityKey) func() (string, error)

GetPin uses pinentry to get the pin of the given token.

Types

type PINEntry added in v0.4.0

type PINEntry struct{}

PINEntry implements useful pinentry service methods.

func (*PINEntry) GetPassphrase added in v0.7.0

func (*PINEntry) GetPassphrase(desc, keyID string, tries int) ([]byte, error)

GetPassphrase uses pinentry to get the passphrase of the given key file.

type SecurityKey

type SecurityKey interface {
	Card() string
	Retries() (int, error)
	Serial() uint32
}

A SecurityKey is a physical hardware token that requires a PIN.

Jump to

Keyboard shortcuts

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