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