dsakp

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: 7 Imported by: 0

Documentation

Overview

Package dsakp implements DSA signature keys as defined in RFC 3279, section 2.3.2.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotDSA = errors.New("not an DSA key")

ErrNotDSA means the unpacked key is not an DSA key.

View Source
var Packer packer

Packer is the singleton packer instance.

View Source
var Unpacker unpacker

Unpacker is the singleton DSA unpacker instance.

Functions

func Pack

func Pack(
	privKey *dsa.PrivateKey, pubKey *dsa.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 *dsa.PrivateKey, pub *dsa.PublicKey, extras []interface{}, err error,
)

Unpack unpacks a key package into an DSA 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