tests/fixtures/vulnerable.go
| 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | "crypto/rand" |
| 5 | "crypto/rsa" |
| 6 | "crypto/ecdsa" |
| 7 | "crypto/elliptic" |
| 8 | "crypto/md5" |
| 9 | ) |
| 10 | |
| 11 | func main() { |
| 12 | _, _ = rsa.GenerateKey(rand.Reader, 2048) |
| 13 | _, _ = ecdsa.GenerateKey(elliptic.P256(), rand.Reader) |
| 14 | _ = md5.New() |
| 15 | } |
| 16 | |