From cdf69178773c0fa82dbba20fee467c174cdcef9c Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Thu, 5 Jan 2023 20:08:47 -0500 Subject: blah --- registry/registry.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'registry/registry.go') 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[:]) -- cgit v1.2.3