Versions in this module Expand all Collapse all v2 v2.0.0 Jun 25, 2016 Changes in this version + var ErrAsymMessageSize = errors.New("Message portion not 20 bytes") + var ErrBadSecret = errors.New("Secret is incorrect") + var ErrBadSignature = errors.New("Bad signature or message.") + var ErrInvalid = errors.New("Key is expired or invalid.") + var ErrNoAsymKey = errors.New("No asym key was found for that SecretVersion") + var ErrNoSecret = errors.New("No secret was found for the secret version.") + var ErrNotECPublicKey = errors.New("Not elliptic curve public key") + var ErrSymKeySize = fmt.Errorf("Key is not %v bytes long.", symKeyDigestSize) + func LoadPrivateKey(filename string) (privKey *ecdsa.PrivateKey, err error) + func LoadPublicKey(filename string) (publicKey *ecdsa.PublicKey, err error) + type AsymKeySigner struct + GetPrivateKey func(key *Key) *ecdsa.PrivateKey + PrivateKey *ecdsa.PrivateKey + PrivateKeyMap map[uint32]*ecdsa.PrivateKey + func (ks *AsymKeySigner) Digest(key *Key) (digest string, err error) + type AsymKeyVerifier struct + CustomInvalidate func(*Key) bool + GetPublicKey func(key *Key) *ecdsa.PublicKey + PublicKey *ecdsa.PublicKey + PublicKeyMap map[uint32]*ecdsa.PublicKey + func (kv *AsymKeyVerifier) Invalidate(key *Key) bool + func (kv *AsymKeyVerifier) Verify(digest string) (key *Key, err error) + type Key struct + Expires time.Time + Flags uint32 + Made time.Time + SecretVersion uint32 + UserID uint32 + type SymKeyService struct + CustomInvalidate func(*Key) bool + GetSecret func(key *Key) (secret []byte) + Secret []byte + SecretMap map[uint32][]byte + func (ks *SymKeyService) Digest(key *Key) (digest string, err error) + func (ks *SymKeyService) Invalidate(key *Key) bool + func (ks *SymKeyService) Verify(digest string) (*Key, error) Other modules containing this package gopkg.in/ammario/isokey.v1