MCPcopy Create free account
hub / github.com/davecheney/pub / rsaVerify

Function rsaVerify

internal/httpsig/verify.go:94–101  ·  view source on GitHub ↗
(pubKey crypto.PublicKey, digest, sig []byte)

Source from the content-addressed store, hash-verified

92}
93
94func rsaVerify(pubKey crypto.PublicKey, digest, sig []byte) error {
95 switch key := pubKey.(type) {
96 case *rsa.PublicKey:
97 return rsa.VerifyPKCS1v15(key, crypto.SHA256, digest, sig)
98 default:
99 return fmt.Errorf("unknown public key type: %T", key)
100 }
101}

Callers 1

VerifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected