Skip to content

Find, verify, and analyze leaked credentials

Use pointer to type. (#926)

ahravb8be0a64a883
diff --git a/pkg/detectors/privatekey/fingerprint.go b/pkg/detectors/privatekey/fingerprint.go
index afb24f5d0..232b896af 100644
--- a/pkg/detectors/privatekey/fingerprint.go
+++ b/pkg/detectors/privatekey/fingerprint.go
@@ -35,7 +35,7 @@ func FingerprintPEMKey(in []byte) (string, error) {
pubKey = &privateKey.PublicKey
case *ecdsa.PrivateKey:
pubKey = &privateKey.PublicKey
- case ed25519.PrivateKey:
+ case *ed25519.PrivateKey:
pubKey = privateKey.Public()
// No fingerprinting support for DSA
// case *dsa.PrivateKey: