Documentation ¶
Index ¶
- func FormatKey(key string) (string, error)
- func ParseIntoAuthorizedKeyBuf(publicKey *ecdsa.PublicKey) (*ssh.PublicKey, *bytes.Buffer)
- func ParseIntoPrivateKeyBuf(privateKey *ecdsa.PrivateKey) *bytes.Buffer
- func ParseIntoPublicKeyBuf(publicKey *ecdsa.PublicKey) *bytes.Buffer
- func ParsePrivateKey(privateKey string) *ecdsa.PrivateKey
- func ParsePublicKey(publicKey string) *ecdsa.PublicKey
- type RSAKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseIntoPrivateKeyBuf ¶
func ParseIntoPrivateKeyBuf(privateKey *ecdsa.PrivateKey) *bytes.Buffer
func ParsePrivateKey ¶
func ParsePrivateKey(privateKey string) *ecdsa.PrivateKey
Types ¶
type RSAKey ¶
type RSAKey struct { PrivateKey *ecdsa.PrivateKey PrivateKeyBuff *bytes.Buffer PrivateKeyText string PrivateKeyBase64 string PublicKey *ecdsa.PublicKey PublicKeyBuff *bytes.Buffer PublicKeyText string PublicKeyBase64 string AuthorizedKey *ssh.PublicKey AuthorizedKeyBuff *bytes.Buffer AuthorizedKeyText string AuthorizedKeyBase64 string }
func GenerateDSAKeyPair ¶
Click to show internal directories.
Click to hide internal directories.