aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-06 01:08:47 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-06 01:08:47 +0000
commitcdf69178773c0fa82dbba20fee467c174cdcef9c (patch)
tree1e4913ae1cd9c60961bd63ff30f931524287aefe
parent573c4606636c9db64e8628b76fae2ceba72fcbf1 (diff)
downloadcommunique-cdf69178773c0fa82dbba20fee467c174cdcef9c.tar.gz
blah
-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[:])