stubbed out cipher funcs
This commit is contained in:
1
keytypes/ed25519/consts.go
Normal file
1
keytypes/ed25519/consts.go
Normal file
@@ -0,0 +1 @@
|
||||
package ed25519
|
||||
1
keytypes/ed25519/funcs.go
Normal file
1
keytypes/ed25519/funcs.go
Normal file
@@ -0,0 +1 @@
|
||||
package ed25519
|
||||
21
keytypes/ed25519/types.go
Normal file
21
keytypes/ed25519/types.go
Normal 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
keytypes/types.go
Normal file
9
keytypes/types.go
Normal 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 {
|
||||
}
|
||||
Reference in New Issue
Block a user