SSHSecure/sshkeys/struct.go

22 lines
454 B
Go
Raw Normal View History

2020-09-03 19:11:42 -04:00
package sshkeys
// EncryptedSSHKeyV1 represents an encrypted private key.
type EncryptedSSHKeyV1 struct {
SSHKeyV1
Salt string
Rounds uint32
Passphrase string
2020-09-03 19:11:42 -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
}