RSA2048VerifyBytes 用RSA2048运算校验byte数组签名
(body []byte, sign []byte, publicKey *rsa.PublicKey)
| 74 | |
| 75 | // RSA2048VerifyBytes 用RSA2048运算校验byte数组签名 |
| 76 | func RSA2048VerifyBytes(body []byte, sign []byte, publicKey *rsa.PublicKey) error { |
| 77 | hash, err := SHA256Bytes(body) |
| 78 | if err != nil { |
| 79 | return err |
| 80 | } |
| 81 | return RSA2048Verify(hash, sign, publicKey) |
| 82 | } |
| 83 | |
| 84 | // RSA2048Verify 用RSA2048运算校验签名 |
| 85 | func RSA2048Verify(hash []byte, sign []byte, publicKey *rsa.PublicKey) error { |
no test coverage detected