Block ciphers

3DES

The 1977 US standard cipher, broken by exhaustive search, and its three-pass extension

legacy Root API only
Legacy tier.

Old but not broken. Kept for interoperability; root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About 3DES

3DES is one of 2 DES and Triple DES variants in the NextSSL registry, a block cipher. It uses a 24-byte (192-bit) key and an 8-byte (64-bit) block. Its registry entry cites SP 800-67 and ISO/IEC 18033-3. It is also known as tdes, tdea and des-ede3. NextSSL lists it in the legacy tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).

Overview

DES was the US federal encryption standard from 1977 until it was replaced by AES. Its 56-bit key has been breakable by brute force since 1998. Triple DES (3DES) applies DES three times to extend its life, but is now deprecated.

DES is a 16-round Feistel network on a 64-bit block. The round function expands a 32-bit half to 48 bits, XORs a round key, passes the result through eight 6-to-4-bit S-boxes and permutes the output. The S-boxes were strengthened against differential cryptanalysis years before that technique was public. Triple DES encrypts, decrypts and encrypts again with two or three independent keys.

DES was developed at IBM from the Lucifer cipher with input from the NSA and published as FIPS 46. NextSSL includes single DES and 3DES (TDEA) for legacy interoperability. Triple DES remained common in payment systems for decades, and the payment industry is still phasing it out. DES remains a key teaching example.

History

1977–2017
  1. DES published as FIPS 46

  2. EFF's Deep Crack recovers a DES key in 56 hours

  3. Triple DES endorsed in FIPS 46-3

  4. FIPS 46-3 withdrawn

  5. Specified in SP 800-67

Security notes

Single DES is broken: the EFF's Deep Crack machine recovered a key in days in 1998, and the keyspace can now be searched in hours. 3DES has an effective strength of 112 bits at most, its 64-bit block is vulnerable to the Sweet32 birthday attack, and NIST disallowed it for encryption after 2023.

Typical uses

Decrypting legacy dataPayment-industry interoperability (3DES)Teaching Feistel ciphers

Sizes

FieldBytesMeaning
key24Secret key
block8Block

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'legacy' is reachable from the root API only
block = root.call("blockcipher_encrypt", "3des", None, key, plaintext_block)[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Other DES and Triple DES variants

1

Frequently asked questions

What is 3DES?

3DES is a block cipher in the DES and Triple DES family. DES was the US federal encryption standard from 1977 until it was replaced by AES. It is also known as tdes, tdea, des-ede3.

What are the 3DES sizes?

In NextSSL, 3DES uses: key 24 bytes, block 8 bytes.

Who designed 3DES and when?

3DES belongs to the DES and Triple DES family, first published in 1977 by IBM, with NSA input. Its origin: FIPS 46-3 (withdrawn); NIST SP 800-67 (3DES).

Which standards define 3DES?

3DES is referenced by SP 800-67, ISO/IEC 18033-3.

Is 3DES safe to use?

3DES is in the legacy tier. Old but not broken. Kept for interoperability; root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).

What other DES and Triple DES variants are there?

NextSSL also registers des in the DES and Triple DES family.