Documentation ¶ Index ¶ Variables func Decode(r io.Reader) (*rsa.PrivateKey, error) func Encode(key *rsa.PrivateKey) []byte func Read(filename string) (*rsa.PrivateKey, error) func Write(filename string, key *rsa.PrivateKey) error func WritePerms(filename string, key *rsa.PrivateKey, perm os.FileMode) error Constants ¶ This section is empty. Variables ¶ View Source var ErrInvalidRsaPrivateKeyPemBlock = errors.New("invalid rsa private key pem block") Functions ¶ func Decode ¶ func Decode(r io.Reader) (*rsa.PrivateKey, error) func Encode ¶ func Encode(key *rsa.PrivateKey) []byte func Read ¶ func Read(filename string) (*rsa.PrivateKey, error) func Write ¶ func Write(filename string, key *rsa.PrivateKey) error func WritePerms ¶ func WritePerms(filename string, key *rsa.PrivateKey, perm os.FileMode) error Types ¶ This section is empty. Source Files ¶ View all Source files decode.go encode.go Click to show internal directories. Click to hide internal directories.