Documentation ¶
Index ¶
Constants ¶
View Source
const ( // default privage secret key. It can be an age key of a PIV encoded age // key. FileName = "privage-key.txt" TypePiv = "PIV" TypeAge = "AGE" )
View Source
const PivAlgoRsa2048 = "RSA2048"
Variables ¶
This section is empty.
Functions ¶
func BackupFilePath ¶
BackupFilePath returns a path for a backup identity file.
func CreatePivRsa ¶
CreatePivRsa generates an age secret key and encrypts it using the yubikey key at slot slot.
It writes the encrypted payload in filePath.
Types ¶
type Identity ¶
type Identity struct { // The age identity Id *age.X25519Identity // Path of the found key. // Path can contain a normal age key or a PIV encrypted one. // // Path can be not empty and still a null Id because of a decoding error. // // A empty Path means all possible paths were searched and no files were // found Path string // Err is the error raised finding or validating the a age identity. Err error }
An Identity is a wrapper for the age Identity.
Click to show internal directories.
Click to hide internal directories.