Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Use pointer to type. (#926)
ahravb8be0a64a883
diff --git a/pkg/detectors/privatekey/fingerprint.go b/pkg/detectors/privatekey/fingerprint.goindex 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.PublicKeycase *ecdsa.PrivateKey:pubKey = &privateKey.PublicKey- case ed25519.PrivateKey:+ case *ed25519.PrivateKey:pubKey = privateKey.Public()// No fingerprinting support for DSA// case *dsa.PrivateKey: