encyclopegia.org

Twofish

In cryptography, Twofish is a symmetric key block cipher with a block size of 128 bits and key sizes up to 256 bits.[src] It was one of the five finalists of the Advanced Encryption Standard contest, but it was not selected for standardization.[src] Twofish is related to the earlier block cipher Blowfish.[src] Twofish's distinctive features are the use of pre-computed key-dependent S-boxes, and a relatively complex key schedule.[src] One half of an n-bit key is used as the actual encryption key and the other half of the n-bit key is used to modify the encryption algorithm (key-dependent S-boxes).[src] Twofish borrows some elements from other designs; for example, the pseudo-Hadamard transform (PHT) from the SAFER family of ciphers.[src] Twofish has a Feistel structure like DES.[src] Twofish also employs a Maximum Distance Separable matrix.[src] When it was introduced in 1998, Twofish was slightly slower than Rijndael (the chosen algorithm for Advanced Encryption Standard) for 128-bit keys, but somewhat faster for 256-bit keys.[src] Since 2008, virtually all AMD and Intel processors have included hardware acceleration of the Rijndael algorithm via the AES instruction set; Rijndael implementations that use the instruction set are now orders of magnitude faster than (software) Twofish implementations.…[src]

In cryptography, Twofish is a symmetric key block cipher with a block size of 128 bits and key sizes up to 256 bits.[src] It was one of the five finalists of the Advanced Encryption Standard contest, but it was not selected for standardization.[src] Twofish is related to the earlier block cipher Blowfish.[src] Twofish's distinctive features are the use of pre-computed key-dependent S-boxes, and a relatively complex key schedule.[src] One half of an n-bit key is used as the actual encryption key and the other half of the n-bit key is used to modify the encryption algorithm (key-dependent S-boxes).[src] Twofish borrows some elements from other designs; for example, the pseudo-Hadamard transform (PHT) from the SAFER family of ciphers.[src] Twofish has a Feistel structure like DES.[src] Twofish also employs a Maximum Distance Separable matrix.[src] When it was introduced in 1998, Twofish was slightly slower than Rijndael (the chosen algorithm for Advanced Encryption Standard) for 128-bit keys, but somewhat faster for 256-bit keys.[src] Since 2008, virtually all AMD and Intel processors have included hardware acceleration of the Rijndael algorithm via the AES instruction set; Rijndael implementations that use the instruction set are now orders of magnitude faster than (software) Twofish implementations.[src] Twofish was designed by Bruce Schneier, John Kelsey, Doug Whiting, David Wagner, Chris Hall, and Niels Ferguson: the "extended Twofish team" met to perform further cryptanalysis of Twofish.[src] Other AES contest entrants included Stefan Lucks, Tadayoshi Kohno, and Mike Stay.[src] The Twofish cipher has not been patented, and the reference implementation has been placed in the public domain.[src] As a result, the Twofish algorithm is free for anyone to use without any restrictions whatsoever.[src] It is one of a few ciphers included in the OpenPGP standard (RFC 9580).[src] However, Twofish has seen less widespread usage than Blowfish, which has been available longer.[src] ==Cryptanalysis== In 1999, Niels Ferguson published an impossible differential attack that breaks 6 rounds out of 16 of the 256-bit key version using 2 256 steps.[src] , the best published cryptanalysis of the Twofish block cipher is a truncated differential cryptanalysis of the full 16-round version.[src] The paper claims that the probability of truncated differentials is 2 −57.3 per block and that it will take roughly 2 51 chosen plaintexts (32 petabytes worth of data) to find a good pair of truncated differentials.[src] Bruce Schneier responded in a 2005 blog entry that this paper did not present a full cryptanalytic attack, but only some hypothesized differential characteristics: "But even from a theoretical perspective, Twofish isn't even remotely broken.[src] There have been no extensions to these results since they were published in 2000." ==See also== Threefish Advanced Encryption Standard Data Encryption Standard ==References== ==Articles== ==External links== Twofish web page, with full specifications, free source code, and other Twofish resources by Bruce Schneier 256 bit ciphers – Twofish reference implementation and derived code Products that Use Twofish by Bruce Schneier Better algorithm: Rijndael or TwoFish?[src] by sci.crypt Standard Cryptographic Algorithm Naming: Twofish[src]

32 sentences · 32 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Twofish." encyclopegia.org, 2026, https://encyclopegia.org/wiki/twofish. Accessed 01 December 2026.

Chicago

"Twofish." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/twofish.

APA

encyclopegia.org. (2026). Twofish. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/twofish

Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
publication date2000Wikipedia
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1377379016 · 0.5 · snapshot enwiki-001377379016

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.