Versions in this module Expand all Collapse all v1 v1.0.0 Apr 19, 2023 Changes in this version + func Attest(yk *piv.YubiKey, slot piv.Slot) (slotCert *x509.Certificate, err error) + func Decrypt(yk *piv.YubiKey, pin string, slot piv.Slot, cipher []byte) (plaintext []byte, err error) + func InputPassword(hint string) (string, error) + func ListCards(skipInvalidCard bool) (cards []*piv.YubiKey, err error) + func NewPIN() (string, error) + func NewPUK() (string, error) + func ResetForPIV(card *piv.YubiKey, pin string, opts ...ResetForPIVOption) (err error) + func SignWithSHA256(yk *piv.YubiKey, pin string, slot piv.Slot, content io.Reader) (signature []byte, err error) + func VerifyPIVCerts(certs []*x509.Certificate) error + type ResetForPIVOption func(*resetForPIVOption) error + func WithRequireTouch() ResetForPIVOption + func WithSlot(slot piv.Slot) ResetForPIVOption