XTEA

XTEA
Two Feistel rounds (one cycle) of XTEA
General
DesignersRoger Needham, David Wheeler
First published1997
Derived fromTEA
SuccessorsCorrected Block TEA
Cipher detail
Key sizes128 bits
Block sizes64 bits
StructureFeistel cipher
Roundsvariable; recommended 64 Feistel rounds (32 cycles)
Best public cryptanalysis
A related-key rectangle attack on 36 rounds of XTEA (Lu, 2009)[vague]

In cryptography, XTEA (eXtended TEA) is a block cipher designed to correct weaknesses in TEA. The cipher's designers were David Wheeler and Roger Needham of the Cambridge Computer Laboratory, and the algorithm was presented in an unpublished technical report in 1997 (Needham and Wheeler, 1997). It is not subject to any patents.[1]

Like TEA, XTEA is a 64-bit block Feistel cipher with a 128-bit key and a suggested 64 rounds. Several differences from TEA are apparent, including a somewhat more complex key-schedule and a rearrangement of the shifts, XORs, and additions.

Implementations

This standard C source code, adapted from the reference code released into the public domain by David Wheeler and Roger Needham, encrypts and decrypts using XTEA:

#include <stdint.h>

/* take 64 bits of data in v[0] and v[1] and 128 bits of key[0] - key[3] */

void encipher(unsigned int num_rounds, uint32_t v[2], uint32_t const key[4]) {
    unsigned int i;
    uint32_t v0=v[0], v1=v[1], sum=0, delta=0x9E3779B9;
    for (i=0; i < num_rounds; i++) {
        v0 += (((v1 << 4) ^ (v1 >> 5)) + v1) ^ (sum + key[sum & 3]);
        sum += delta;
        v1 += (((v0 << 4) ^ (v0 >> 5)) + v0) ^ (sum + key[(sum>>11) & 3]);
    }
    v[0]=v0; v[1]=v1;
}

void decipher(unsigned int num_rounds, uint32_t v[2], uint32_t const key[4]) {
    unsigned int i;
    uint32_t v0=v[0], v1=v[1], delta=0x9E3779B9, sum=delta*num_rounds;
    for (i=0; i < num_rounds; i++) {
        v1 -= (((v0 << 4) ^ (v0 >> 5)) + v0) ^ (sum + key[(sum>>11) & 3]);
        sum -= delta;
        v0 -= (((v1 << 4) ^ (v1 >> 5)) + v1) ^ (sum + key[sum & 3]);
    }
    v[0]=v0; v[1]=v1;
}

The changes from the reference source code are minor:

  • The reference source code used the unsigned long type rather than the 64-bit clean uint32_t.
  • The reference source code did not use const types.
  • The reference source code omitted redundant parentheses, using C precedence to write the round function as e.g. v1 += (v0<<4 ^ v0>>5) + v0 ^ sum + k[sum>>11 & 3];

The recommended value for the "num_rounds" parameter is 32, not 64, as each iteration of the loop does two Feistel-cipher rounds. To additionally improve speed, the loop can be unrolled by pre-computing the values of sum+key[].

Cryptanalysis

In 2004, Ko et al. presented a related-key differential attack on 27 out of 64 rounds of XTEA, requiring 220.5 chosen plaintexts and a time complexity of 2115.15.[2][3]

In 2009, Lu presented a related-key rectangle attack on 36 rounds of XTEA, breaking more rounds than any previously published cryptanalytic results for XTEA. The paper presents two attacks, one without and with a weak key assumption, which corresponds to 264.98 bytes of data and 2126.44 operations, and 263.83 bytes of data and 2104.33 operations respectively.[4]

Block TEA

Presented along with XTEA was a variable-width block cipher termed Block TEA, which uses the XTEA round function, but Block TEA applies it cyclically across an entire message for several iterations. Because it operates on the entire message, Block TEA has the property that it does not need a mode of operation. An attack on the full Block TEA was described by Saarinen,[5] which also details a weakness in Block TEA's successor, XXTEA.

See also

  • Ascon — A NIST-select lightweight authenticated cipher.
  • RC4 — A stream cipher that, just like XTEA, is designed to be very simple to implement.
  • TEA — Block TEA's precursor.
  • XXTEA — Block TEA's successor.

References

  1. ^ Roger M. Needham; David J. Wheeler (October 1997). Tea extensions (PDF). Computer Laboratory, University of Cambridge (Technical report).
  2. ^ Ko, Youngdai; Hong, Seokhie; Lee, Wonil; Lee, Sangjin; Kang, Ju-Sung (2004). "Related Key Differential Attacks on 27 Rounds of XTEA and Full-Round GOST" (PDF). In Roy, B.; Meier, W. (eds.). Fast Software Encryption. FSE 2004. Lecture Notes in Computer Science. Vol. 3017. Berlin, Heidelberg: Springer. pp. 299–316. doi:10.1007/978-3-540-25937-4_19. ISBN 978-3-540-22171-5. Retrieved October 10, 2018.
  3. ^ Hong, Seokhie; Hong, Deukjo; Ko, Youngdai; Chang, Donghoon; Lee, Wonil; Lee, Sangjin (2004). "Differential Cryptanalysis of TEA and XTEA". In Lim, JI.; Lee, DH. (eds.). Information Security and Cryptology. ICISC 2003. Lecture Notes in Computer Science. Vol. 2971. Berlin, Heidelberg: Springer. pp. 402–417. doi:10.1007/978-3-540-24691-6_30. ISBN 978-3-540-21376-5.
  4. ^ Lu, Jiqiang (July 2, 2008). "Related-key rectangle attack on 36 rounds of the XTEA block cipher". International Journal of Information Security. 8 (1): 1–11. doi:10.1007/s10207-008-0059-9. ISSN 1615-5262. S2CID 26794956.
  5. ^ Saarinen, Markku-Juhani (October 20, 1998). "Cryptanalysis of Block Tea". ResearchGate. Retrieved October 10, 2018.

Further reading

Read other articles:

artikel ini perlu dirapikan agar memenuhi standar Wikipedia. Tidak ada alasan yang diberikan. Silakan kembangkan artikel ini semampu Anda. Merapikan artikel dapat dilakukan dengan wikifikasi atau membagi artikel ke paragraf-paragraf. Jika sudah dirapikan, silakan hapus templat ini. (Pelajari cara dan kapan saatnya untuk menghapus pesan templat ini) Silvia Kurniady mempunyai Background Sekolah di William Blue Hotel Management School, Sydney di tahun 1996 - 2002. Kemudian Dia kembali ke Indones...

 

 

Sgt. Pepper's Lonely Hearts Club BandAlbum studio karya The BeatlesDirilis1 Juni 1967 (1967-06-01)Direkam6 Desember 1966 – 21 April 1967StudioEMI Studios dan Regent Sound Studio, LondonGenre Rock pop psychedelic rock art rock Durasi39:42LabelParlophoneProduserGeorge MartinKronologi The Beatles 'A Collection of Beatles Oldies (1966) Sgt. Pepper's Lonely Hearts Club Band 'The Beatles (1968) 'Revolver (1966) '''''Sgt. Pepper's Lonely Hearts Club Band(1967) 'Magical Mystery Tour(1...

 

 

National Rail station in London, England East Dulwich East DulwichLocation of East Dulwich in Greater LondonLocationEast DulwichLocal authorityLondon Borough of SouthwarkManaged bySouthernStation codeEDWDfT categoryENumber of platforms2Fare zone2National Rail annual entry and exit2018–19 1.712 million[1]2019–20 1.820 million[1]2020–21 0.456 million[1]2021–22 0.916 million[1]2022–23 1.041 million[1]Key dates1 October 1868Opened as Champion Hill...

1903 to present immigration This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article may require cleanup to meet Wikipedia's quality standards. The specific problem is: Repetitive, language is emotionally charged and needs to be made more neutral, needs more citations. Please help improve this article if you can. (April 2023) (Learn how and when to remove this template message) This a...

 

 

State park in Oregon, United States Hat Rock State ParkHat RockShow map of OregonShow map of the United StatesTypePublic, stateLocationUmatilla County, OregonNearest cityHermistonCoordinates45°54′53″N 119°09′54″W / 45.9148548°N 119.1650109°W / 45.9148548; -119.1650109[1]Operated byOregon Parks and Recreation Department Hat Rock State Park is a state park in the U.S. state of Oregon, administered by the Oregon Parks and Recreation Departmen...

 

 

American professional wrestler Dean MalenkoMalenko in 2019Birth nameDean SimonBorn (1960-08-04) August 4, 1960 (age 63)[1][2]Irvington, New Jersey, U.S.Spouse(s) Julie Hittinger ​(m. 1996)​Children3FamilyBoris Malenko (father)Joe Malenko (brother)Professional wrestling careerRing name(s)Ciclope[3]Dean MalenkoDean Sarcoff Great PumpkinBilled height5 ft 10 in (178 cm)[4]Billed weight212 lb (96 kg)[4&#...

Professional wrestling tag team The Hollywood Blonds is a name used by several professional wrestling tag teams over the years. The original Blonds were Buddy Roberts and Jerry Brown, who used the name in the 1970s. Rip Rogers and Ted Oates wrestled as The Hollywood Blonds in the mid-1980s in the National Wrestling Alliance's (NWA) Jim Crockett Promotions (JCP). The name was also adopted by Pretty Boy Larry Sharpe and Dynamite Jack Evans, who had a stint in then World Wide Wrestling Federatio...

 

 

Server software for macOS Not to be confused with Mac OS X. Mac OS X ServerMac OS X Snow Leopard Server running Server Admin on DesktopDeveloperApple Inc.Written inC, C++, Objective-C, and HTML for settingsOS family Macintosh Unix[1] Working stateDiscontinued on April 21, 2022Source modelClosed-source (with open-source components)Initial releaseMarch 16, 1999; 25 years ago (1999-03-16)Final release5.12[2] / December 8, 2021 (2021-12-08)Availabl...

 

 

1900年美國總統選舉 ← 1896 1900年11月6日 1904 → 447張選舉人票獲勝需224張選舉人票投票率73.2%[1] ▼ 6.1 %   获提名人 威廉·麥金利 威廉·詹寧斯·布賴恩 政党 共和黨 民主党 家鄉州 俄亥俄州 內布拉斯加州 竞选搭档 西奧多·羅斯福 阿德萊·史蒂文森一世 选举人票 292 155 胜出州/省 28 17 民選得票 7,228,864 6,370,932 得票率 51.6% 45.5% 總統選舉結果地圖,紅色代表�...

 烏克蘭總理Прем'єр-міністр України烏克蘭國徽現任杰尼斯·什米加尔自2020年3月4日任命者烏克蘭總統任期總統任命首任維托爾德·福金设立1991年11月后继职位無网站www.kmu.gov.ua/control/en/(英文) 乌克兰 乌克兰政府与政治系列条目 宪法 政府 总统 弗拉基米尔·泽连斯基 總統辦公室 国家安全与国防事务委员会 总统代表(英语:Representatives of the President of Ukraine) 总...

 

 

Військово-музичне управління Збройних сил України Тип військове формуванняЗасновано 1992Країна  Україна Емблема управління Військово-музичне управління Збройних сил України — структурний підрозділ Генерального штабу Збройних сил України призначений для планува...

 

 

106-й гвардейскийистребительный авиационный Висленскийорденов Кутузова и Александра Невского полк Вооружённые силы ВС СССР Вид вооружённых сил ВВС Род войск (сил) истребительная авиация Почётные наименования «Висленский» Формирование 24.08.1943 г. Расформирование (преобра...

Not to be confused with Kanguka. Magazine in Rwanda that served to stoke ethnic hatred in the run-up to the Rwandan Genocide KanguraThe cover of the November 1991 issue of Kangura. The title states, Tutsi: Race of God, while the text to the right of the machete states, Which weapons are we going to use to beat the cockroaches for good?. The man pictured is the second president of the First Republic, Grégoire Kayibanda, who made Hutu the governing ethnicity after the 1959 massacres.EditorHass...

 

 

Cataloguing of published recordings by English rock band Deep Purple Deep Purple discographyDeep Purple (2013)Studio albums22Live albums43Compilation albums26Video albums15Singles55 English hard rock band Deep Purple have released 22 studio albums, 43 live albums and 55 singles. Formed in early 1968 by Jon Lord, Ian Paice, Rod Evans, Ritchie Blackmore, and Nick Simper, Deep Purple released their debut album, Shades of Deep Purple, in July of that year. The band has taken on many new members o...

 

 

Former United States Army officer who served in the Gulf War Rhonda CornumBirth nameRhonda Leah Scott[1]Born (1954-10-31) October 31, 1954 (age 69)Dayton, OhioAllegianceUnited StatesService/branchUnited States ArmyYears of service1978–2012RankBrigadier GeneralCommands heldLandstuhl Regional Medical CenterBattles/warsGulf WarAwardsArmy Distinguished Service MedalLegion of Merit (3)Distinguished Flying CrossBronze Star MedalPurple HeartSpouse(s)Kory G. Cornum Rhonda L. Cornu...

Los Angeles-class nuclear-powered attack submarine of the US Navy For other ships with the same name, see USS Oklahoma City. USS Oklahoma City (SSN-723) History United States NameUSS Oklahoma City NamesakeOklahoma City, Oklahoma Awarded13 August 1981 BuilderNewport News Shipbuilding, Newport News, Virginia Laid down4 January 1984 Launched2 November 1985 Sponsored byMrs. Linda M. Nickles Acquired28 June 1988 Commissioned9 July 1988 Decommissioned9 September 2022 Out of service10 February 2022 ...

 

 

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (فبراير 2024)   لمعانٍ أخرى، طالع جورج كوك (توضيح).   لمعانٍ أخرى، طالع جورج كوكي (توضيح). جورج كوك معلومات شخصية الميلاد 17 مارس 1793 [1]  مقاطعة سانت ماري  ا�...

 

 

Politics of Sweden Basic Laws Instrument of Government Act of Succession Freedom of the Press Act Fundamental Law on Freedom of Expression Monarchy King (list): Carl XVI Gustaf Crown Princess: Victoria Royal family Royal Court Marshal of the Realm: Fredrik Wersäll Executive Government: Kristersson cabinet Prime Minister (list): Ulf Kristersson Deputy Prime Minister: Ebba Busch Government offices Ministries Government agencies Legislature Riksdag Speaker: Andreas Norlén Deputy Speakers 1st �...

Musical style and genre For other uses, see Jazz (disambiguation). JazzEtymologySee: Jazz (word)Stylistic origins Blues ragtime (including classical ragtime) spirituals folk marches classical European music West African music Cultural originsLate 19th century, New Orleans, U.S.Typical instrumentsDouble bassdrumsguitar (typically electric guitar)pianosaxophonetrumpetclarinettrombonetubavocalsvibraphoneHammond organharmonicaDerivative forms Rock and roll rock jump blues traditional pop reggae r...

 

 

Computer program which translates code from one programming language to another This article is about software to translate computer languages. For the manga, see Compiler (manga). Compile and Compiling redirect here. For the software company, see Compile (company). For other uses, see Compilation. Program execution General concepts Code Translation Compiler Compile time Optimizing compiler Intermediate representation (IR) Execution Runtime system Runtime Executable Interpreter Virtual machin...