rsakp

package
v0.0.0-...-1788661 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotRSA = errors.New("not an RSA key")

ErrNotRSA means the unpacked key is not an RSA key.

View Source
var Packer packer

Packer is the singleton packer instance.

View Source
var Unpacker unpacker

Unpacker is the singleton RSA unpacker instance.

Functions

func Pack

func Pack(
	privKey *rsa.PrivateKey, pubKey *rsa.PublicKey, options ...interface{},
) (pkg *akp.OneAsymmetricKey, err error)

Pack packs the given RSA key pair into a key package.

func Unpack

func Unpack(pkg *akp.OneAsymmetricKey) (
	priv *rsa.PrivateKey, pub *rsa.PublicKey, extras []interface{}, err error,
)

Unpack unpacks a key package into an RSA key pair.

Types

This section is empty.

Jump to

Keyboard shortcuts

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