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.
.P256()NeutralP256() Curve
P256 returns a Curve which implements NIST P-256 (FIPS 186-3, section D.2.3),
.P384()NeutralP384() Curve
P384 returns a Curve which implements NIST P-384 (FIPS 186-3, section D.2.4),
.P521()NeutralP521() Curve
P521 returns a Curve which implements NIST P-521 (FIPS 186-3, section D.2.5),
.PrivateKey.Bytes()NeutralPrivateKey.Bytes() []byte
Bytes returns a copy of the encoding of the private key.
.PrivateKey.ECDH()NeutralPrivateKey.ECDH(remote *PublicKey) ([]byte, error)
ECDH performs a ECDH exchange and returns the shared secret. The PrivateKey
.PrivateKey.Equal()NeutralPrivateKey.Equal(x crypto.PrivateKey) bool
Equal returns whether x represents the same private key as k.
.PrivateKey.Public()NeutralPrivateKey.Public() crypto.PublicKey
Public implements the implicit interface of all standard library private
.PrivateKey.PublicKey()NeutralPrivateKey.PublicKey() *PublicKey
PrivateKey.PublicKey function.
.PublicKey.Bytes()NeutralPublicKey.Bytes() []byte
Bytes returns a copy of the encoding of the public key.
| FQN | Field | |
|---|---|---|
| crypto/ecdh | 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/ecdh