Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllKeySpecs = []KeySpec{ {piv.SlotAuthentication, piv.TouchPolicyCached}, {piv.SlotSignature, piv.TouchPolicyAlways}, {piv.SlotCardAuthentication, piv.TouchPolicyNever}, }
AllKeySpecs represents all the key specifications supported by this package.
View Source
var ErrNotReset = errors.New("security key already set up")
ErrNotReset is returned from Setup when the security key is already set up and reset is false.
Functions ¶
Types ¶
type KeySpec ¶
type KeySpec struct {
Slot piv.Slot
TouchPolicy piv.TouchPolicy
}
KeySpec represents the specification of a key on the token.
type SSHKeySpec ¶
type SSHKeySpec struct {
PubKey ssh.PublicKey
Slot piv.Slot
TouchPolicy piv.TouchPolicy
Card string
Serial uint32
}
SSHKeySpec represents an SSH key stored on a security key / hardware token.
func SSHKeySpecs ¶
func SSHKeySpecs(sks []SecurityKey) ([]SSHKeySpec, error)
SSHKeySpecs returns all the SSHKeySpecs available on the given list of SecurityKeys.
Click to show internal directories.
Click to hide internal directories.