Go stdlib package — crypto/dsa. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.GenerateKey()NeutralGenerateKey(priv *PrivateKey, rand io.Reader) error
GenerateKey generates a public&private key pair. The Parameters of the
.GenerateParameters()NeutralGenerateParameters(params *Parameters, rand io.Reader, sizes ParameterSizes) error
GenerateParameters puts a random, valid set of DSA parameters into params.
.Sign()NeutralSign(rand io.Reader, priv *PrivateKey, hash []byte) (*big.Int, *big.Int, error)
Sign signs an arbitrary length hash (which should be the result of hashing a
.Verify()NeutralVerify(pub *PublicKey, hash []byte, r *big.Int, s *big.Int) bool
Verify verifies the signature in r, s of hash using the public key, pub. It
.ParameterSizes()Neutraltype ParameterSizes ...
ParameterSizes is an enumeration of the acceptable bit lengths of the primes
.Parameters()Neutraltype Parameters ...
Parameters represents the domain parameters for a key. These parameters can
| FQN | Field | |
|---|---|---|
| crypto/dsa | 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 ... # crypto/dsa