RSA2048VerifyString 用RSA2048运算校验文本签名
(body string, sign []byte, publicKey *rsa.PublicKey)
| 69 | |
| 70 | // RSA2048VerifyString 用RSA2048运算校验文本签名 |
| 71 | func RSA2048VerifyString(body string, sign []byte, publicKey *rsa.PublicKey) error { |
| 72 | return RSA2048VerifyBytes([]byte(body), sign, publicKey) |
| 73 | } |
| 74 | |
| 75 | // RSA2048VerifyBytes 用RSA2048运算校验byte数组签名 |
| 76 | func RSA2048VerifyBytes(body []byte, sign []byte, publicKey *rsa.PublicKey) error { |
nothing calls this directly
no test coverage detected