Documentation ¶
Index ¶
- Constants
- 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
Constants ¶
View Source
const (
// DEFAULT_ID is the default user id used in Sign and Verify
DEFAULT_ID = "1234567812345678"
)
View Source
const DIGESTLEN = 32
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.