extrsa

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeys

func GenerateKeys(bits int) (private, public *pem.Block, err error)

GenerateKeys generate keys return private and public pem.Block. bits: 1024*n, n > 0

func LoadPrivateKey

func LoadPrivateKey(filename string) (*rsa.PrivateKey, error)

LoadPrivateKey load private key

func LoadPublicKey

func LoadPublicKey(filename string) (*rsa.PublicKey, error)

LoadPublicKey load public key

func ParsePrivateKey

func ParsePrivateKey(key []byte) (*rsa.PrivateKey, error)

ParsePrivateKey parse private key

func ParsePublicKey

func ParsePublicKey(key []byte) (*rsa.PublicKey, error)

ParsePublicKey parse public key

func WriteFile

func WriteFile(filename string, block *pem.Block) error

WriteFile write file

Types

This section is empty.

Jump to

Keyboard shortcuts

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