sdk/golang/Standard Library/GoCryptoStdlib
Standard Library

GoCryptoStdlib

Go stdlib package — crypto. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.Hash.Available()Neutral
#
Signature
Hash.Available() bool

Available reports whether the given hash function is linked into the binary.

.Hash.HashFunc()Neutral
#
Signature
Hash.HashFunc() Hash

HashFunc simply returns the value of h so that Hash implements SignerOpts.

.Hash.New()Neutral
#
Signature
Hash.New() hash.Hash

New returns a new hash.Hash calculating the given hash function. New panics

.Hash.Size()Neutral
#
Signature
Hash.Size() int

Size returns the length, in bytes, of a digest resulting from the given hash

.Hash.String()Neutral
#
Signature
Hash.String() string

Hash.String function.

.RegisterHash()Neutral
#
Signature
RegisterHash(h Hash, f func() hash.Hash)

RegisterHash registers a function that returns a new instance of the given

.Decrypter()Neutral
#
Signature
type Decrypter ...

Decrypter is an interface for an opaque private key that can be used for

.DecrypterOpts()Neutral
#
Signature
type DecrypterOpts ...

DecrypterOpts type.

.Hash()Neutral
#
Signature
type Hash ...

Hash identifies a cryptographic hash function that is implemented in another

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

PrivateKey represents a private key using an unspecified algorithm.

Fully-Qualified Names

FQNField
cryptofqns[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