2020-09-03 19:11:42 -04:00
|
|
|
package sshkeys
|
|
|
|
|
2020-09-11 23:06:51 -04:00
|
|
|
// EncryptedSSHKeyV1 represents an encrypted private key.
|
|
|
|
type EncryptedSSHKeyV1 struct {
|
|
|
|
SSHKeyV1
|
|
|
|
Salt string
|
|
|
|
Rounds uint32
|
|
|
|
Passphrase string
|
2020-09-03 19:11:42 -04:00
|
|
|
}
|
|
|
|
|
2020-09-11 23:06:51 -04:00
|
|
|
// SSHKeyV1 represents an unencrypted private key.
|
|
|
|
// We don't bother with the legacy (pre v1) keys. Sorry not sorry.
|
|
|
|
// Patch your shit.
|
|
|
|
type SSHKeyV1 struct {
|
|
|
|
CipherName string
|
|
|
|
KDFName string
|
|
|
|
KDFOpts string
|
|
|
|
NumKeys uint32
|
|
|
|
Publickey string
|
|
|
|
Privatekey string
|
2020-09-03 19:11:42 -04:00
|
|
|
}
|