Documentation
¶
Index ¶
- func ParsePrivateKey(ascii string) (crypto.Signer, error)
- func ParsePublicKey(ascii string) (crypto.PublicKey, error)
- func ReadPrivateKeyFile(fileName string) (crypto.Signer, error)
- func ReadPublicKeyFile(fileName string) (crypto.PublicKey, error)
- func ReadPublicKeysFile(fileName string) (map[crypto.Hash]crypto.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePrivateKey ¶
Supports two formats:
- Openssh private key
- Openssh public key, in which case ssh-agent is used to access the corresponding private key.
- (Deprecated) Raw hex-encoded private key (RFC 8032)
func ParsePublicKey ¶
Expects an Openssh public key (single-line format)
func ReadPrivateKeyFile ¶ added in v0.1.19
func ReadPublicKeyFile ¶ added in v0.1.19
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.