Triple DES

Triple DES
Triple Data Encryption Algorithm
First published 1998 (ANS X9.52)
Derived from DES
Cipher detail
Key sizes 168, 112 or 56 bits (Keying option 1, 2, 3 respectively)
Block sizes 64 bits
Structure Feistel network
Rounds 48 DES-equivalent rounds
Best public cryptanalysis
Lucks: 232 known plaintexts, 2113 operations including 290 DES encryptions, 288 memory; Biham: find one of 228 target keys with a handful of chosen plaintexts per key and 284 encryptions

In cryptography, Triple DES is the common name for the Triple Data Encryption Algorithm (TDEA or Triple DEA) block cipher, which applies the Data Encryption Standard (DES) cipher algorithm three times to each data block.

The original DES cipher's key size of 56 bits was generally sufficient when that algorithm was designed, but the availability of increasing computational power made brute-force attacks feasible. Triple DES provides a relatively simple method of increasing the key size of DES to protect against such attacks, without the need to design a completely new block cipher algorithm.


Definitive standards

The Triple Data Encryption Algorithm (TDEA) is defined in each of:

Name of the algorithm

The earliest standard that defines the algorithm (ANS X9.52, published in 1998) describes it as the "Triple Data Encryption Algorithm (TDEA)" — i.e. three operations of the Data Encryption Algorithm specified in ANSI X3.92 — and does not use the terms "Triple DES" or "DES" at all. FIPS PUB 46-3 (1999) defines the "Triple Data Encryption Algorithm (TDEA)", but also uses the terms "DES" and "Triple DES". It uses the terms "Data Encryption Algorithm" and "DES" interchangeably, including starting the specification with:

The Data Encryption Standard (DES) shall consist of the following Data Encryption Algorithm (DES) [sic] and Triple Data Encryption Algorithm (TDEA, as described in ANSI X9.52).

NIST SP 800-67 (2004, 2008[4]) primarily uses the term TDEA, but also refers to "Triple DES (TDEA)". ISO/IEC 18033-3 (2005) uses "TDEA", but mentions that:

The TDEA is commonly known as Triple DES (Data Encryption Standard).

None of the standards that define the algorithm use the term "3DES".


Triple DES uses a "key bundle" which comprises three DES keys, K1, K2 and K3, each of 56 bits (excluding parity bits). The encryption algorithm is:

ciphertext = EK3(DK2(EK1(plaintext)))

I.e., DES encrypt with K1, DES decrypt with K2, then DES encrypt with K3.

Decryption is the reverse:

plaintext = DK1(EK2(DK3(ciphertext)))

I.e., decrypt with K3, encrypt with K2, then decrypt with K1.

Each triple encryption encrypts one block of 64 bits of data.

In each case the middle operation is the reverse of the first and last. This improves the strength of the algorithm when using keying option 2, and provides backward compatibility with DES with keying option 3.

Keying options

The standards define three keying options:

  • Keying option 1: All three keys are independent.
  • Keying option 2: K1 and K2 are independent, and K3 = K1.
  • Keying option 3: All three keys are identical, i.e. K1 = K2 = K3.

Keying option 1 is the strongest, with 3 × 56 = 168 independent key bits.

Keying option 2 provides less security, with 2 × 56 = 112 key bits. This option is stronger than simply DES encrypting twice, e.g. with K1 and K2, because it protects against meet-in-the-middle attacks.

Keying option 3 is equivalent to DES, with only 56 key bits. This option provides backward compatibility with DES, because the first and second DES operations cancel out. It is no longer recommended by the National Institute of Standards and Technology (NIST),[5] and is not supported by ISO/IEC 18033-3.

Other terms used to refer to the keying options

"Keying option n" is the term used by the standards (X9.52, FIPS PUB 46-3, SP 800-67, ISO/IEC 18033-3) that define the TDEA. However, other terms are used in other standards and related recommendations, and general usage.

  • For keying option 1:
    • 3TDEA, in NIST SP 800-57[6] and SP 800-78-2[7]
    • Triple-length keys, in general usage[8][9]
  • For keying option 2:
    • 2TDEA, in NIST SP 800-57[6] and SP 800-78-1[7]
    • Double-length keys, in general usage[8][9]

Encryption of more than one block

As with all block ciphers, encryption and decryption of multiple blocks of data may be performed using a variety of modes of operation, which can generally be defined independently of the block cipher algorithm. However ANS X9.52 specifies directly, and NIST SP 800-67 specifies via SP 800-38A[10], that some modes shall only be used with certain constraints on them that do not necessarily apply to general specifications of those modes. For example, ANS X9.52 specifies that for cipher block chaining, the initialization vector shall be different each time, whereas ISO/IEC 10116[11] does not. FIPS PUB 46-3 and ISO/IEC 18033-3 define only the single block algorithm, and do not place any restrictions on the modes of operation for multiple blocks.


In general Triple DES with three independent keys (keying option 1) has a key length of 168 bits (three 56-bit DES keys), but due to the meet-in-the-middle attack the effective security it provides is only 112 bits. Keying option 2 reduces the key size to 112 bits. However, this option is susceptible to certain chosen-plaintext or known-plaintext attacks[12][13] and thus it is designated by NIST to have only 80 bits of security.[6]

The best attack known on keying option 1 requires around 232 known plaintexts, 2113 steps, 290 single DES encryptions, and 288 memory[14] (the paper presents other tradeoffs between time and memory). This is not currently practical and NIST considers keying option 1 to be appropriate through 2030.[6] If the attacker seeks to discover any one of many cryptographic keys, there is a memory-efficient attack which will discover one of 228 keys, given a handful of chosen plaintexts per key and around 284 encryption operations.[15]


The electronic payment industry uses Triple DES and continues to develop and promulgate standards based upon it (e.g. EMV).[16][17]

Microsoft OneNote and Microsoft Outlook 2007 use Triple DES to password protect user content.[18][19]

See also

References and notes

  1. ^ X9.52 is sometimes erroneously referred to as ANSI X9.52, however the standard itself has the designation ANS X9.52.
  2. ^ X9.52 defines TDEA as a compound operation of the Data Encryption Algorithm specified in ANSI X3.92-1981 Data Encryption Algorithm, and does not include the DEA specification. Thus X9.52 must be read in conjunction with X3.92.
  3. ^ Federal Register vol 70, number 96, Announcing Approval of the Withdrawal of Federal Information Processing Standard (FIPS) 46–3, Data Encryption Standard (DES); FIPS 74, Guidelines for Implementing and Using the NBS Data Encryption Standard; and FIPS 81, DES Modes of Operation (PDF)
  4. ^ NIST SP 800-67 version 1 was published in May 2004. It was revised in May 2008, as version 1.1, making a correction and clarification to the list of weak and semi-weak keys. Both versions use the same terminology.
  5. ^ NIST SP 800-67
  6. ^ a b c d NIST Special Publication 800-57 Recommendation for Key Management — Part 1: General (Revised), March, 2007 (PDF)
  7. ^ a b NIST Special Publication 800-78-2, Cryptographic Algorithms and Key Sizes for Personal Identity Verification, February 2010 (PDF)
  8. ^ a b "The Cryptography Guide: Triple DES". Cryptography World. Retrieved 2010-07-11. 
  9. ^ a b "Triple DES Encryption". IBM. Retrieved 2010-07-11. 
  10. ^ NIST Special Publication 800-38A, Recommendation for Block Cipher Modes of Operation, Methods and Techniques, 2001 Edition (PDF)
  11. ^ ISO/IEC 10116:2006 Information technology — Security techniques — Modes of operation for an n-bit block cipher
  12. ^ Ralph Merkle, Martin Hellman: On the Security of Multiple Encryption (PDF), Communications of the ACM, Vol 24, No 7, pp 465–467, July 1981.
  13. ^ Paul van Oorschot, Michael J. Wiener, A known-plaintext attack on two-key triple encryption (PDF), EUROCRYPT'90, LNCS 473, 1990, pp 318–325.
  14. ^ Stefan Lucks: Attacking Triple Encryption (PDF), Fast Software Encryption 1998, pp 239–253.
  15. ^ Eli Biham: How to Forge DES-Encrypted Messages in 228 Steps (PostScript), 1996.
  16. ^ EMV 4.2 Specifications, Book 2 - Security and Key Management, version 4.2, June 2008
  17. ^ VISA
  18. ^ Daniel Escapa's OneNote Blog - Encryption for Password Protected Sections, November 2006
  19. ^ Microsoft - Encrypt E-mail Messages, Outlook 2007

Wikimedia Foundation. 2010.

Look at other dictionaries:

  • DES-X — In cryptography, DES X (or DESX) is a variant on the DES (Data Encryption Standard) block cipher intended to increase the complexity of a brute force attack using a technique called key whitening. The original DES algorithm was specified in 1976… …   Wikipedia

  • DES Challenges — Part of the EFF s DES cracking machine which was used in two of the challenges The DES Challenges were a series of brute force attack contests created by RSA Security for the purpose of highlighting the lack of security provided by the Data… …   Wikipedia

  • Triple-A (baseball) — Triple A (or Class AAA) refers to the highest level of play in minor league baseball in the United States and Mexico. Contents 1 Purpose 2 Leagues 3 Current teams 3.1 International League …   Wikipedia

  • Triple accreditation — is a term meaning that a business school has been accredited by the three largest Business school ranking associations. Each association assesses different aspects of a business school. For instance AMBA looks specifically at the MBA, whereas… …   Wikipedia

  • TRIPLE — adj. des deux genres Qui contient trois fois une chose, une grandeur, un nombre. Des souliers à triple semelle. Un bâtiment à triple étage. Neuf est le triple de trois.   Triple croche, Note de musique marquée d un triple crochet, et qui vaut le… …   Dictionnaire de l'Academie Francaise, 7eme edition (1835)

  • TRIPLE — adj. des deux genres Qui vaut trois fois autant. Triple dose. Triple charge. Il signifie, par extension, Qui est composé de trois choses pareilles ou analogues entre elles. Faire une copie, un acte en triple exemplaire. Des souliers à triple… …   Dictionnaire de l'Academie Francaise, 8eme edition (1935)

  • Triple metre — Compound triple drum pattern: divides three beats into three  Play …   Wikipedia

  • Des Moines Demons — The Des Moines Demons are a former professional baseball team. Contents 1 1925 2 1926 3 1927 4 1928 5 1929 …   Wikipedia

  • EFF DES cracker — The EFF s US$250,000 DES cracking machine contained 1,856 custom chips and could brute force a DES key in a matter of days the photo shows a two sided DES Cracker circuit board fitted with 64 Deep Crack chips In cryptography, the EFF DES cracker… …   Wikipedia

  • Place des Vosges — Paris streetbox arr num=3e, 4e streetname=Place des VOSGES x=140 y=82 paris arr1=IIIe arr2=IVe quarter=Archives . Arsenal . begins=rue de Birague, 11 bis ends=rue de Béarn, 1 length=140 m width=140 m creation=July 1605. denomination= area caption …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”