24 lines
460 B
Go
24 lines
460 B
Go
package sshkeys
|
|
|
|
func (k *EncryptedSSHKeyV1) GeneratePrivate(keyType uint8) error {
|
|
return nil
|
|
}
|
|
|
|
func (k *EncryptedSSHKeyV1) GeneratePublic(keyType uint8) error {
|
|
if err := k.GeneratePrivate(keyType); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (k *SSHKeyV1) GeneratePrivate(keyType uint8) error {
|
|
return nil
|
|
}
|
|
|
|
func (k *SSHKeyV1) GeneratePublic(keyType uint8) error {
|
|
if err := k.GeneratePrivate(keyType); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|