Versions in this module Expand all Collapse all v0 v0.1.0 Feb 15, 2016 Changes in this version + var ErrInvalidKeyGeneratorParameter = errors.New("Invalid Key Generator Parameter.") + var ErrInvalidKeyParameter = errors.New("Invalid Key Parameter.") + type AsymmetricCipher interface + Init func(params AsymmetricCipherParameter) error + Process func(msg []byte) ([]byte, error) + type AsymmetricCipherParameter interface + IsPublic func() bool + type CipherParameters interface + type KeyGenerator interface + GenerateKey func() (PrivateKey, error) + Init func(params KeyGeneratorParameter) error + type KeyGeneratorParameter interface + type KeySerializer interface + FromBytes func([]byte) (interface{}, error) + ToBytes func(key interface{}) ([]byte, error) + type Parameter interface + GetRand func() io.Reader + type PrivateKey interface + GetPublicKey func() PublicKey + type PublicKey interface + type SPI interface + DeserializePrivateKey func(bytes []byte) (PrivateKey, error) + NewAsymmetricCipherFromPrivateKey func(priv PrivateKey) (AsymmetricCipher, error) + NewAsymmetricCipherFromPublicKey func(pub PublicKey) (AsymmetricCipher, error) + NewPrivateKey func(rand io.Reader, params interface{}) (PrivateKey, error) + NewPublicKey func(rand io.Reader, params interface{}) (PublicKey, error) + SerializePrivateKey func(priv PrivateKey) ([]byte, error)