crypto/aes package. NewCipher() with a weak mode (ECB, CBC without IV) is a cryptographic weakness finding.
.NewCipher().NewCipher()SinkNewCipher(key []byte) (cipher.Block, error)
Creates AES block cipher. Finding when used in ECB mode (no IV).
0| FQN | Field | |
|---|---|---|
| crypto/aes | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import GoCryptoAES