init: v1.0.0
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package sm2
|
||||
|
||||
import (
|
||||
"crypto/cipher"
|
||||
"crypto/elliptic"
|
||||
"math/big"
|
||||
)
|
||||
|
||||
func sign(priv *PrivateKey, csprng *cipher.StreamReader, c elliptic.Curve, hash []byte) (r, s *big.Int, err error) {
|
||||
return signGeneric(priv, csprng, c, hash)
|
||||
}
|
||||
|
||||
func verify(pub *PublicKey, c elliptic.Curve, hash []byte, r, s *big.Int) bool {
|
||||
return verifyGeneric(pub, c, hash, r, s)
|
||||
}
|
||||
Reference in New Issue
Block a user