bcrypt and null kdf done, work on ciphers next (then keytypes)

This commit is contained in:
2022-04-25 04:27:24 -04:00
parent 91d5e99404
commit ff3f8243d1
43 changed files with 755 additions and 423 deletions

View File

@@ -6,14 +6,14 @@ import (
`r00t2.io/sshkeys/kdf`
)
// KeyEd25519 is an ed25519 OpenSSH key.
type KeyEd25519 struct {
KeyPairs []*KeypairEd25519 `xml:"keypairs" json:"keypairs" yaml:"Keypairs"`
Cipher string // TODO: (sshkeys/cipher).Cipher
// Key is an ed25519 OpenSSH key.
type Key struct {
KeyPairs []*Keypair `xml:"keypairs" json:"keypairs" yaml:"Keypairs"`
Cipher string // TODO: (sshkeys/cipher).Cipher
KDF kdf.KDF
}
type KeypairEd25519 struct {
type Keypair struct {
Private ed25519.PrivateKey `xml:"private" json:"private_key" yaml:"Private Key"`
Public ed25519.PublicKey `xml:"public" json:"public_key" yaml:"Public Key"`
Comment string `xml:"comment,attr" json:"comment" yaml:"comment"`