Documentation ¶
Index ¶
- func EncodeDsaPrivateKey(pkey *dsa.PrivateKey) []byte
- func EncodeRsaPrivateKey(private *rsa.PrivateKey) []byte
- func EncodeSSHKey(public interface{}) ([]byte, error)
- func GenerateDsaKey() (*dsa.PrivateKey, *dsa.PublicKey, error)
- func GenerateRsaKey(bits int) (*rsa.PrivateKey, *rsa.PublicKey, error)
- func MakeSSHDsaKeyPair() (string, string, error)
- func MakeSSHRsaKeyPair() (string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeDsaPrivateKey ¶
func EncodeDsaPrivateKey(pkey *dsa.PrivateKey) []byte
func EncodeRsaPrivateKey ¶
func EncodeRsaPrivateKey(private *rsa.PrivateKey) []byte
func EncodeSSHKey ¶
func GenerateDsaKey ¶
func GenerateDsaKey() (*dsa.PrivateKey, *dsa.PublicKey, error)
func GenerateRsaKey ¶
func MakeSSHDsaKeyPair ¶
func MakeSSHRsaKeyPair ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.