SHA-1 Already broken 4 places See details
Broken hash function
An import of `crypto/md5` or `crypto/sha1`, or a call to `New()` on either.
This is already unsafe today, with no quantum computer involved. SHAttered and subsequent work produced practical collisions; NIST withdrew SHA-1 in 2030 guidance and it is already unacceptable for signatures.
What to do. `crypto/sha256`, or `crypto/sha512` for long-lived signatures.
-
authority/provisioner/collection.go:325
sum := sha1.Sum([]byte(p.GetID())) -
authority/tls_test.go:224
test path
hash := sha1.Sum(info.SubjectPublicKey.Bytes) -
ca/ca_test.go:70
test path
hash := sha1.Sum(info.SubjectPublicKey.Bytes) -
test/integration/scep/common_test.go:456
test path
h := sha1.Sum(publicKeyBytes)