Versions in this module Expand all Collapse all v0 v0.1.0 Feb 24, 2018 Changes in this version + const ECDSA + const PRIVATE_KEY + const PUBLIC_KEY + const RSA + var DefaultRSAOption = &rsa.PSSOptions + func DERToPrivateKey(data []byte) (interface{}, error) + func DERToPublicKey(data []byte) (interface{}, error) + func PEMToPrivateKey(data []byte) (interface{}, error) + func PEMToPublicKey(data []byte) (interface{}, error) + func PrivateKeyToPEM(pri Key) ([]byte, error) + func PublicKeyToPEM(pub Key) ([]byte, error) + type Crypto interface + GetKey func() (pri, pub Key, err error) + Sign func(data []byte, opts SignerOpts) ([]byte, error) + Verify func(key Key, signature, digest []byte, opts SignerOpts) (bool, error) + func NewCryptoImpl(path string, keyGenOpts KeyGenOpts) (Crypto, error) + type ECDSAKeyGenOpts struct + func (opts *ECDSAKeyGenOpts) Algorithm() string + type Key interface + Algorithm func() string + SKI func() (ski []byte) + type KeyGenOpts interface + Algorithm func() string + type RSAKeyGenOpts struct + func (opts *RSAKeyGenOpts) Algorithm() string + type SignerOpts interface