Versions in this module Expand all Collapse all v0 v0.1.2 Dec 28, 2019 Changes in this version + type ECPrivateKey struct + Key *big.Int + func ECGenerateKeyPair(curve elliptic.Curve, rand io.Reader) (pk *ECPrivateKey, e error) + type ECPublicKey struct + X *big.Int + Y *big.Int + type Group struct + G *big.Int + P *big.Int + type KeyMAC interface + MaxHashSize func() int + New func(key []byte) hash.Hash + func HMAC(h func() hash.Hash, est int) KeyMAC + func SimpleHash(h func() hash.Hash, est int) KeyMAC + func WrapMAC(h func(key []byte) hash.Hash, est int) KeyMAC + type PrivateKey struct + Key *big.Int + func GenerateKeyPair(group *Group, rand io.Reader) (pk *PrivateKey, e error) + type PublicKey struct + A *big.Int + type Signer interface + GetSignature func() (*big.Int, []byte) + func ECSign(rand io.Reader, pk *ECPrivateKey, mac KeyMAC) (Signer, error) + func Sign(rand io.Reader, pk *PrivateKey, mac KeyMAC) (Signer, error) + type Verifier interface + Verify func() bool + func ECVerify(pk *ECPublicKey, mac KeyMAC, s *big.Int, e []byte) Verifier + func Verify(pk *PublicKey, mac KeyMAC, s *big.Int, e []byte) Verifier