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.
Click to show internal directories.
Click to hide internal directories.