pivplug

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: 17 Imported by: 0

Documentation

Overview

Package pivplug implements an age plugin for PIV hardware security tokens, such as Yubikey.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatPIVRecipient

func FormatPIVRecipient(compressed []byte) string

func Identity

func Identity(pivcards pivcard.Opener, conn *ageplugin.Conn) error

func PublicKeyTagFromRecipient

func PublicKeyTagFromRecipient(recipient string) string

func Recipient

func Recipient(conn *ageplugin.Conn) error

Types

type PIVIdentity

type PIVIdentity struct {
	Serial uint32
	Slot   uint8
	Tag    string
}

func ParsePIVIdentity

func ParsePIVIdentity(ident string) (*PIVIdentity, error)

type PIVRecipient

type PIVRecipient struct {
	Compressed []byte
	Public     *ecdsa.PublicKey
	Tag        string
}

func ParsePIVRecipient

func ParsePIVRecipient(recipient string) (*PIVRecipient, error)

Jump to

Keyboard shortcuts

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