Skip to content

Commit

Permalink
Merge pull request #2229 from masibw/meaningless_encode
Browse files Browse the repository at this point in the history
Remove meaningless encode
  • Loading branch information
tonistiigi authored Jul 7, 2021
2 parents 9df5993 + 8a4efe4 commit f024120
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions session/auth/authprovider/authprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"crypto/ed25519"
"crypto/hmac"
"crypto/sha256"
"encoding/json"
"fmt"
"io"
"net/http"
Expand Down Expand Up @@ -191,8 +190,6 @@ func (ap *authProvider) getAuthorityKey(host string, salt []byte) (ed25519.Priva
mac := hmac.New(sha256.New, salt)
if creds.Secret != "" {
mac.Write(seed)
enc := json.NewEncoder(mac)
enc.Encode(creds)
}

sum := mac.Sum(nil)
Expand Down

0 comments on commit f024120

Please sign in to comment.