gmsm icon indicating copy to clipboard operation
gmsm copied to clipboard

SM2签名算法入参必须携带公钥,不合理

Open blueSkySCCBA opened this issue 3 years ago • 2 comments

本身SM2签名仅需要私钥即可,当前代码直接使用到了公钥,导致使用误解

blueSkySCCBA avatar Jun 22 '21 06:06 blueSkySCCBA

func Sm2Sign(priv *PrivateKey, msg, uid []byte, random io.Reader) (r, s *big.Int, err error) 这个不是签名函数么。没有公钥参数呀

RangoW avatar Dec 16 '21 02:12 RangoW