RSA2048Verify 用RSA2048运算校验签名
(hash []byte, sign []byte, publicKey *rsa.PublicKey)
| 83 | |
| 84 | // RSA2048Verify 用RSA2048运算校验签名 |
| 85 | func RSA2048Verify(hash []byte, sign []byte, publicKey *rsa.PublicKey) error { |
| 86 | return rsa.VerifyPKCS1v15(publicKey, crypto.SHA256, hash, sign) |
| 87 | } |
| 88 | |
| 89 | // ReadAndParsePublicKey 解析PEM证书公钥 |
| 90 | func ReadAndParsePublicKey(cert []byte) (*rsa.PublicKey, error) { |
no outgoing calls
no test coverage detected