checking in

This commit is contained in:
2020-09-03 19:11:42 -04:00
parent 83f1a431c2
commit 456284a697
6 changed files with 149 additions and 0 deletions

21
sshkeys/const.go Normal file
View File

@@ -0,0 +1,21 @@
package sshkeys
// https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.key
const (
AuthMagic string = "openssh-key-v1"
)
type EncryptedSSHKey2 struct {
SSHKey2
Salt string
Rounds uint32
}
type SSHKey2 struct {
CipherName string
KDFName string
KDFOpts string
NumKeys int
Keys []string
Encrypted []string
}