rsapublic

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 6 Imported by: 2

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL