Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultKeyPath = filepath.Join(config.HomeDir(), ".ssh", "id_rsa")
)
Functions ¶
func PKCS5Or7Unpadding ¶
Types ¶
type PasswordMethod ¶
func DummyPasswordMethod ¶
func DummyPasswordMethod(password string) PasswordMethod
type PrivateKey ¶
type PrivateKey struct { Path string Block *pem.Block PasswordMethod }
func (*PrivateKey) Decrypt ¶
func (p *PrivateKey) Decrypt() error
func (*PrivateKey) IsCipherImplemented ¶
func (p *PrivateKey) IsCipherImplemented(cipher string) bool
func (*PrivateKey) IsEncrypted ¶
func (p *PrivateKey) IsEncrypted() bool
Click to show internal directories.
Click to hide internal directories.