Documentation ¶ Index ¶ Variables func Decode(r io.Reader) (*rsa.PublicKey, error) func Encode(key *rsa.PublicKey) []byte func Read(filename string) (*rsa.PublicKey, error) func Write(filename string, key *rsa.PublicKey) error func WritePerms(filename string, key *rsa.PublicKey, perm os.FileMode) error Constants ¶ This section is empty. Variables ¶ View Source var ErrInvalidRsaPublicKeyPemBlock = errors.New("invalid rsa public key pem block") Functions ¶ func Decode ¶ func Decode(r io.Reader) (*rsa.PublicKey, error) func Encode ¶ func Encode(key *rsa.PublicKey) []byte func Read ¶ func Read(filename string) (*rsa.PublicKey, error) func Write ¶ func Write(filename string, key *rsa.PublicKey) error func WritePerms ¶ func WritePerms(filename string, key *rsa.PublicKey, 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.