rsaprivate

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 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.

Jump to

Keyboard shortcuts

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