cryptoutil

package
v0.0.0-...-b1bf5db Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPublicKeyType = errors.New("invalid public key type")
	ErrEmptyPEMBlock        = errors.New("empty pem block")
)

Functions

func LoadRSAPrivateKey

func LoadRSAPrivateKey(pemFile string) (*rsa.PrivateKey, error)

func LoadRSAPublicKey

func LoadRSAPublicKey(pemFile string) (*rsa.PublicKey, error)

func MarshalPrivkey

func MarshalPrivkey(privkey *rsa.PrivateKey) []byte

func MarshalPubkey

func MarshalPubkey(pubkey *rsa.PublicKey) ([]byte, error)

func UnmarshalPrivkey

func UnmarshalPrivkey(data []byte) (*rsa.PrivateKey, error)

func UnmarshalPubkey

func UnmarshalPubkey(data []byte) (*rsa.PublicKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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