cipher package. NewGCMWithNonceSize() and AEAD.Seal() — finding when nonce is reused or predictable.
.Seal().Seal()SinkSeal(dst, nonce, plaintext, additionalData []byte) []byte
Encrypts and authenticates. Finding when nonce is reused.
1.NewGCM()NeutralNewGCM(cipher Block) (AEAD, error)
Creates GCM mode cipher. Finding when nonce is not cryptographically random.
| FQN | Field | |
|---|---|---|
| crypto/cipher | 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 GoCipherGCM