stubbed out cipher funcs

This commit is contained in:
2022-04-28 05:18:25 -04:00
parent ff3f8243d1
commit 5da1bbcd11
23 changed files with 2657 additions and 49 deletions
+1
View File
@@ -0,0 +1 @@
package ed25519
+1
View File
@@ -0,0 +1 @@
package ed25519
+21
View File
@@ -0,0 +1,21 @@
package ed25519
import (
`crypto/ed25519`
`r00t2.io/sshkeys/cipher`
`r00t2.io/sshkeys/kdf`
)
// Key is an ed25519 OpenSSH key.
type Key struct {
KeyPairs []*Keypair `xml:"keypairs" json:"keypairs" yaml:"Keypairs"`
Cipher cipher.Cipher
KDF kdf.KDF
}
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"`
}
+9
View File
@@ -0,0 +1,9 @@
package keytypes
// Key contains at least one keytypes.KeyPair, a cipher.Cipher, and a kdf.KDF.
type Key interface {
}
// KeyPair contains a private key component, public key component, and comment.
type KeyPair interface {
}