Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceAlgorithmsffdh

Finite-field Diffie-Hellman

Diffie-Hellman key agreement in the multiplicative group of a large prime field, specified in SP 800-56A. It is still offered in TLS, SSH and IPsec, mostly as a fallback to elliptic-curve exchange.

In short

What a quantum computer changes.

Quantum effect
Broken by Shor's algorithm
Family
Classical public keyRests on finite-field discrete logarithm.
What it means
Shor's algorithm, run on a large, fault-tolerant quantum computer, factors large numbers and solves discrete logarithms, including those on elliptic curves, far faster than any known classical method. The security of this algorithm rests on finite-field discrete logarithm, which is one of those problems. Anyone with such a machine could work out a private key from the matching public key. Signatures could then be forged, and data protected by a key exchange built on this algorithm could be decrypted, including traffic recorded now and kept for later. Longer keys do not fix this. The usual answer is to plan a move to a post-quantum or hybrid scheme.

This describes the family, not any project that uses it.

8 in the catalogue

Packages that provide it

Packages that provide Finite-field Diffie-Hellman
PackageProvides
crypto-browserifynpmBrowser port of the Node.js crypto module that re-exports the browserify packages for hashes, HMAC, PBKDF2, AES, Diffie-Hellman, ECDH, RSA and ECDSA signing and RSA encryption.
diffie-hellmannpmPure JavaScript finite-field Diffie-Hellman with the same API as the Node.js crypto module.
ssh2npmSSH2 client and server in JavaScript for Node.js, with Curve25519, ECDH and finite-field Diffie-Hellman key exchange, Ed25519, ECDSA, RSA and DSA host keys, AES-GCM, AES-CTR, AES-CBC and ChaCha20-Poly1305 ciphers, and HMAC.
opensslcrates.ioRust bindings to OpenSSL covering TLS, X.509, RSA, DSA, Diffie-Hellman, elliptic curve and Edwards curve keys, symmetric ciphers, hashes, MACs and key derivation.
openssl-syscrates.ioRaw FFI declarations for the OpenSSL C library, used by the openssl crate.
boringcrates.ioRust bindings to BoringSSL with TLS support, RSA, DSA, Diffie-Hellman, ECDSA and ECDH, Ed25519 and X25519, ML-KEM, ML-DSA, HPKE, AEAD ciphers, hashes, HMAC and key derivation.
mbedtlscrates.ioRust wrapper for Mbed TLS covering TLS, X.509, RSA, ECDSA, ECDH, Diffie-Hellman, AES and ChaCha20-Poly1305, hashes, HMAC, HKDF, PBKDF2 and DRBG random generators.
botancrates.ioRust wrapper for the Botan C++ library, exposing ciphers, hashes, MACs, KDFs, password hashing, random generators, X.509 and classical and post-quantum public key algorithms.

1 listed

Sources

Full record

Identifier
ffdh
Kind
key-exchange
Family
Classical public key
Rests on
finite-field discrete logarithm
Quantum effect
Broken by Shor's algorithm