aboutsummaryrefslogtreecommitdiff
path: root/registry/registry.go
diff options
context:
space:
mode:
Diffstat (limited to 'registry/registry.go')
-rw-r--r--registry/registry.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/registry/registry.go b/registry/registry.go
index 605c4f8..ab2ece3 100644
--- a/registry/registry.go
+++ b/registry/registry.go
@@ -291,9 +291,7 @@ func (r *Registry) deliverAcceptToInbox(url, actorUrl, actorKeyUrl *url.URL, fol
request.Header.Get("host"),
).Debugf("signing request")
- digest := sha256.New()
- digest.Write([]byte(signedString))
- digestBytes := digest.Sum(nil)
+ digestBytes := sha256.Sum256([]byte(signedString))
r.mu.Lock()
signature, err := rsa.SignPKCS1v15(rand.Reader, privKey, crypto.SHA256, digestBytes[:])