MCPcopy Create free account
hub / github.com/LanceLRQ/deer-executor / RSA2048Verify

Function RSA2048Verify

common/persistence/utils.go:85–87  ·  view source on GitHub ↗

RSA2048Verify 用RSA2048运算校验签名

(hash []byte, sign []byte, publicKey *rsa.PublicKey)

Source from the content-addressed store, hash-verified

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

Callers 4

validateProblemPackageFunction · 0.92
RSA2048VerifyBytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected