Versions in this module Expand all Collapse all v1 v1.0.4 Jan 22, 2019 Changes in this version + const DEFAULT_ID + const DIGESTLEN + func Decrypt(priv *ecdsa.PrivateKey, encryptData []byte) ([]byte, error) + func Encrypt(pub *ecdsa.PublicKey, data []byte) ([]byte, error) + func SM2P256V1() elliptic.Curve + func Sign(rand io.Reader, priv *ecdsa.PrivateKey, id string, msg []byte, ...) (r, s *big.Int, err error) + func Verify(pub *ecdsa.PublicKey, id string, msg []byte, hasher hash.Hash, r, s *big.Int) bool + type SM2Curve interface + ABytes func() []byte