Standard Library

GoCryptoEcdh

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

Other Methods

.P256()Neutral
#
Signature
P256() Curve

P256 returns a Curve which implements NIST P-256 (FIPS 186-3, section D.2.3),

.P384()Neutral
#
Signature
P384() Curve

P384 returns a Curve which implements NIST P-384 (FIPS 186-3, section D.2.4),

.P521()Neutral
#
Signature
P521() Curve

P521 returns a Curve which implements NIST P-521 (FIPS 186-3, section D.2.5),

.PrivateKey.Bytes()Neutral
#
Signature
PrivateKey.Bytes() []byte

Bytes returns a copy of the encoding of the private key.

.PrivateKey.Curve()Neutral
#
Signature
PrivateKey.Curve() Curve

PrivateKey.Curve function.

.PrivateKey.ECDH()Neutral
#
Signature
PrivateKey.ECDH(remote *PublicKey) ([]byte, error)

ECDH performs a ECDH exchange and returns the shared secret. The PrivateKey

.PrivateKey.Equal()Neutral
#
Signature
PrivateKey.Equal(x crypto.PrivateKey) bool

Equal returns whether x represents the same private key as k.

.PrivateKey.Public()Neutral
#
Signature
PrivateKey.Public() crypto.PublicKey

Public implements the implicit interface of all standard library private

.PrivateKey.PublicKey()Neutral
#
Signature
PrivateKey.PublicKey() *PublicKey

PrivateKey.PublicKey function.

.PublicKey.Bytes()Neutral
#
Signature
PublicKey.Bytes() []byte

Bytes returns a copy of the encoding of the public key.

Fully-Qualified Names

FQNField
crypto/ecdhfqns[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/ecdh