]> git.ipfire.org Git - thirdparty/bind9.git/commit
Remove TKEY Mode 2 (Diffie-Hellman)
authorOndřej Surý <ondrej@isc.org>
Tue, 28 Feb 2023 15:05:34 +0000 (16:05 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 8 Mar 2023 07:36:25 +0000 (08:36 +0100)
commitbd4576b3cef88bcb78ae0dd7619019be4fdfb2ea
tree183693957fe7b15b06ccaebb621d3c1af3778569
parent584eb794008901b354c8e52f45a0f2812769c4d6
Remove TKEY Mode 2 (Diffie-Hellman)

Completely remove the TKEY Mode 2 (Diffie-Hellman Exchanged Keying) from
BIND 9 (from named, named.conf and all the tools).  The TKEY usage is
fringe at best and in all known cases, GSSAPI is being used as it should.

The draft-eastlake-dnsop-rfc2930bis-tkey specifies that:

    4.2 Diffie-Hellman Exchanged Keying (Deprecated)

       The use of this mode (#2) is NOT RECOMMENDED for the following two
       reasons but the specification is still included in Appendix A in case
       an implementation is needed for compatibility with old TKEY
       implementations. See Section 4.6 on ECDH Exchanged Keying.

          The mixing function used does not meet current cryptographic
          standards because it uses MD5 [RFC6151].

          RSA keys must be excessively long to achieve levels of security
          required by current standards.

We might optionally implement Elliptic Curve Diffie-Hellman (ECDH) key
exchange mode 6 if the draft ever reaches the RFC status.  Meanwhile the
insecure DH mode needs to be removed.
44 files changed:
bin/dnssec/dnssec-keyfromlabel.c
bin/dnssec/dnssec-keygen.c
bin/dnssec/dnssec-keygen.rst
bin/dnssec/dnssectool.c
bin/named/config.c
bin/named/main.c
bin/named/tkeyconf.c
bin/tests/system/Makefile.am
bin/tests/system/dnssec/ns3/sign.sh
bin/tests/system/tkey/clean.sh [deleted file]
bin/tests/system/tkey/keycreate.c [deleted file]
bin/tests/system/tkey/keydelete.c [deleted file]
bin/tests/system/tkey/ns1/example.db [deleted file]
bin/tests/system/tkey/ns1/named.conf.in [deleted file]
bin/tests/system/tkey/ns1/setup.sh [deleted file]
bin/tests/system/tkey/setup.sh [deleted file]
bin/tests/system/tkey/tests.sh [deleted file]
configure.ac
doc/arm/reference.rst
doc/misc/options
lib/dns/Makefile.am
lib/dns/dnssec.c
lib/dns/dst_api.c
lib/dns/dst_internal.h
lib/dns/dst_parse.c
lib/dns/dst_parse.h
lib/dns/include/dns/keyvalues.h
lib/dns/include/dns/tkey.h
lib/dns/include/dst/dst.h
lib/dns/nsec.c
lib/dns/openssl_shim.c
lib/dns/openssl_shim.h
lib/dns/openssldh_link.c [deleted file]
lib/dns/rcode.c
lib/dns/resolver.c
lib/dns/tkey.c
lib/dns/zone.c
lib/isccfg/kaspconf.c
lib/isccfg/namedconf.c
tests/dns/Makefile.am
tests/dns/comparekeys/Kexample-private.+002+65316.key [deleted file]
tests/dns/comparekeys/Kexample-private.+002+65316.private [deleted file]
tests/dns/dh_test.c [deleted file]
tests/dns/dst_test.c