Standard Library

GoCryptoDsa

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.

Other Methods

.GenerateKey()Neutral
#
Signature
GenerateKey(priv *PrivateKey, rand io.Reader) error

GenerateKey generates a public&private key pair. The Parameters of the

.GenerateParameters()Neutral
#
Signature
GenerateParameters(params *Parameters, rand io.Reader, sizes ParameterSizes) error

GenerateParameters puts a random, valid set of DSA parameters into params.

.Sign()Neutral
#
Signature
Sign(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()Neutral
#
Signature
Verify(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()Neutral
#
Signature
type ParameterSizes ...

ParameterSizes is an enumeration of the acceptable bit lengths of the primes

.Parameters()Neutral
#
Signature
type Parameters ...

Parameters represents the domain parameters for a key. These parameters can

.PrivateKey()Neutral
#
Signature
type PrivateKey ...

PrivateKey represents a DSA private key.

.PublicKey()Neutral
#
Signature
type PublicKey ...

PublicKey represents a DSA public key.

Fully-Qualified Names

FQNField
crypto/dsafqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # crypto/dsa