From 1b686a2d5238969b82b8d9950877d6539adf1581 Mon Sep 17 00:00:00 2001 From: Slavek Kabrda Date: Wed, 28 Aug 2024 13:10:33 +0200 Subject: [PATCH] Update pkg/repo/repo.go Co-authored-by: Hayden B Signed-off-by: Slavek Kabrda --- pkg/repo/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/repo/repo.go b/pkg/repo/repo.go index 871bd3216..6b08ad214 100644 --- a/pkg/repo/repo.go +++ b/pkg/repo/repo.go @@ -335,7 +335,7 @@ func getKeyWithDetails(key []byte) (crypto.PublicKey, crypto.Hash, error) { default: return 0, 0, fmt.Errorf("unsupported public modulus %d", v.Size()) } - case *ed25519.PublicKey: + case ed25519.PublicKey: hashFunc = crypto.SHA512 default: return 0, 0, errors.New("unknown public key type")