pivcard

package
v0.0.0-...-49146f6 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package pivcard provides a minimal abstraction over PIV card hardware token access, containing only the features needed by age-plugin-yubikey.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card interface {
	Close() error
	Public() *ecdsa.PublicKey
	SharedKey(peer *ecdsa.PublicKey, prompt Prompter) ([]byte, error)
}

type Opener

type Opener interface {
	Open(serial uint32, slot uint8) (Card, error)
}

func New

func New() Opener

type Prompter

type Prompter func(msg string) (string, error)

Directories

Path Synopsis
Package mock_pivcard is a generated GoMock package.
Package mock_pivcard is a generated GoMock package.

Jump to

Keyboard shortcuts

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