pub fn verify(msg: &[u8], pk: &str, sign: &str) -> Result<bool, Sm2Error>Expand description
§签名验签
- msg: 待验签数据, 如:SBmIZpPZUpsdEc+QHJ0xiNY6qAw= (一般在解密Body数据,进过sha1_base64后得到的数据)
- public_key: 公钥字符串( SPDB_PublicKey )
- signature: 签名字符串 (Header x-spdb-signature )