RSA2048SignString 对文本执行RSA2048运算
(body string, privateKey *rsa.PrivateKey)
| 46 | |
| 47 | // RSA2048SignString 对文本执行RSA2048运算 |
| 48 | func RSA2048SignString(body string, privateKey *rsa.PrivateKey) ([]byte, error) { |
| 49 | return RSA2048SignBytes([]byte(body), privateKey) |
| 50 | } |
| 51 | |
| 52 | // RSA2048SignBytes 对byte数组执行RSA2048运算 |
| 53 | func RSA2048SignBytes(body []byte, privateKey *rsa.PrivateKey) ([]byte, error) { |
nothing calls this directly
no test coverage detected