rsa

package
v0.0.0-...-de535d1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPrivateKey = errors.New("private key error")
	ErrPublicKey  = errors.New("public key error")
)

Functions

func Decrypt

func Decrypt(cipher []byte, pri *rsa.PrivateKey) ([]byte, error)

func Encrypt

func Encrypt(orig []byte, pub *rsa.PublicKey) ([]byte, error)

func PrivateKey

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

func PublicKey

func PublicKey(pub []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