HAL Id: inria-00423681
https://hal.inria.fr/inria-00423681
Submitted on 12 Oct 2009
HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.
L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.
Improving Integral Cryptanalysis against Rijndael with Large Blocks
Marine Minier, Benjamin Pousse
To cite this version:
Marine Minier, Benjamin Pousse. Improving Integral Cryptanalysis against Rijndael with Large Blocks. [Research Report] 2009. �inria-00423681�
a p p o r t
d e r e c h e r c h e
ISSN0249-6399ISRNINRIA/RR--????--FR+ENG
Thème COM
INSTITUT NATIONAL DE RECHERCHE EN INFORMATIQUE ET EN AUTOMATIQUE
Improving Integral Cryptanalysis against Rijndael with Large Blocks
Marine Minier — Benjamin Pousse
N° ????
Octobre 2009
Unité de recherche INRIA Rhône-Alpes
655, avenue de l’Europe, 38334 Montbonnot Saint Ismier (France)
Téléphone : +33 4 76 61 52 00 — Télécopie +33 4 76 61 52 52
Marine Minier , BenjaminPousse
ThèmeCOM Systèmesommuniants
ProjetsSWING
Rapportdereherhe n° ???? Otobre200911pages
Abstrat: This report presents new four-round integral properties against the Rijndael ipher with blok
sizes largerthan128bits. Usinghigher-ordermultisetdistinguishersandotherwell-knownextensionsofthose
properties,thededuedattaksreahupto7and8roundsofRijndaelvariantswith160upto256-bitbloks.
Forexample,a7-roundsattakagainstRijndael-224hasatimeomplexityequalto280.
Key-words: blokipher,ryptanalysis,integralattaks,Rijndael-b
Résumé: Ce rapportprésentedenouvellespropriétésintégralespourlesvariantesdeRijndaelpourdesblos
detaillessupérieuresà128bits. Enutilisantdesdistingueurspartiuliersetdesextensionsd'attaquesonnues,
lespropriétésdéduitespermettentd'attaquer7et 8étagesdeRijndael.
Mots-lés : hirementparblos,ryptanalyses,attaquesintégrales,Rijndael-b
1 Introdution
Rijndael-bisanSPNblokipherdesignedbyVinentRijmenandJoanDaemen[4℄. Ithasbeenhosenasthe
new advaned enryption standardbytheNIST[6℄with a128-bitbloksize andavariablekeylength,whih
an be set to 128, 192or 256bits. In itsfull version,the bloklengths b and thekeylengths N k an range
from128upto256bitsinstepsof32bits,asdetailedin[3℄andin[8℄. Thereare25instanesofRijndael. The
number of rounds N r depends on the text size b and on the key size N k and varies between 10and 14 (see
Table1forpartialdetails). Foralltheversions,theurrentblokattheinputoftheroundrisrepresentedby a4×twitht= (b/32)matrixofbytes A(r):
A(r)=
a(r)0,0 a(r)0,1 · · · a(r)0,t a(r)1,0 a(r)1,1 · · · a(r)1,t a(r)2,0 a(r)2,1 · · · a(r)2,t a(r)3,0 a(r)3,1 · · · a(r)3,t
Theround funtion, repeatedN r−1 times, involvesfour elementarymappings, alllinearexept therst
one:
SubBytes: abytewisetransformationthat appliesoneahbyteoftheurrentblokan8-bitto 8-bitnon
linearS-boxS.
ShiftRows: alinearmappingthatrotatesontheleftalltherowsoftheurrentmatrix. thevaluesof the
shifts(givenin Table1)dependonb.
MixColumns: alinearmatrixmultipliation;eaholumnoftheinputmatrixismultipliedbythematrix
M thatprovidestheorrespondingolumnoftheoutputmatrix.
AddRoundKey: anx-orbetweentheurrentblokandthesubkeyoftheroundr Kr.
ThoseN r−1 rounds aresurrounded at thetopbyaninitial keyaddition withthesubkeyK0 and at the
bottom byanal transformationomposed byaallto theround funtion where theMixColumnsoperation
is omitted. Thekeyshedule derivesN r+ 1b-bits roundkeysK0 toKN r fromthe masterkeyK ofvariable
length.
AES Rijndael-160 Rijndael-192 Rijndael-224 Rijndael-256
ShiftRows (1,2,3) (1,2,3) (1,2,3) (1,2,4) (1,3,4)
N brounds(N k=128) 10 11 12 13 14
N brounds(N k=192) 12 12 12 13 14
N brounds(N k=256) 14 14 14 14 14
Table1: ParametersoftheRijndaelblokipherwherethetriplet(i, j, k)fortheShiftRowsoperationdesignated
therequirednumberofbyteshiftsfortheseondrow,thethird oneandthefourthone.
ManyryptanalyseshavebeenproposedagainstRijndael-b,therstoneagainstalltheversionsofRijndael-b
is duetothealgorithmdesignersthemselvesandisbaseduponintegralproperties([1℄,[2℄,[10℄)thatallowsto
eientlydistinguish3Rijndaelinner roundsfrom arandompermutation. Thisattakhasbeenimprovedby
Fergusonetal. in[5℄allowingtoryptanalysean8roundsversionofRijndael-bwithaomplexityequalto2204
trialenryptionsand2128−2119plaintexts.
Followingthedediatedworkof[7℄,thispaperpresentsnewfour-roundintegralpropertiesofRijndael-band
theresulting7and8roundsattakswhih aresubstantiallyfaster thanexhaustivekeysearh. Note alsothat
those attaksgreatlyimprovethepreviousresultsonRijndael-b,essentiallytheonesgivenin [8℄ andin[9℄.
This paper is organizedas follows: Setion 2realls theintegral properties known againstRijndael-b and
investigatesthe newfour and verounds properties. Setion 3presents thededued 7and 8roundsattaks.
Setion 4onludes thispaper.
2 The integral properties
We desribe in this setion thefour inner rounds original integralproperty againstthe AESdesribed in [5℄,
theveroundsintegralpropertyofRijndael-256desribedin[7℄andthenewintegralpropertiesagainstallthe
Rijndael-bversionswhereb islargerthan128bits.
2.1 Introdution and Notations
In[10℄,L. KnudsenandD. Wagneranalyseintegralryptanalysisasadual todierentialattakspartiularly
appliabletoblokipherswithbijetiveomponents. Arst-orderintegralryptanalysisonsidersapartiular
olletionofm wordsintheplaintextsand iphertextsthatdieronapartiularomponent. Theaimofthis
attak isthus topredit thevaluesin thesums(i.e. theintegral) of thehosenwordsafter aertainnumber
ofrounds ofenryption. Thesameauthorsalsogeneralizethis approahtohigher-orderintegrals: theoriginal
set to onsider beomes a set of md vetors whih dier in d omponents and where the sum of this set is
preditable afteraertainnumberofrounds. Thesumofthissetisalled adth-orderintegral.
2.1.1 Notations
We rst introdueand extend theonsistent notationsproposed in [10℄ forexpressing word-orientedintegral
attaks. Forarstorderintegral,wehave:
Thesymbol`C'(forConstant)intheithentry,meansthatthevaluesofalltheithwordsintheolletion
oftextsareequal.
Thesymbol`A'(forAll)meansthatallwordsintheolletionoftextsaredierent.
Thesymbol`S'(forSum)meansthat thesumofallithwordsanbepredited.
Thesymbol`?'meansthatthesumof wordsannotbepredited.
Foradth orderintegralryptanalysis:
Thesymbol`Ad'orrespondswiththeomponentsthat partiipatein adth-orderintegral,i.e. ifaword
antakemdierentvaluesthenAdmeansthatintheintegral,thepartiularwordtakesallvaluesexatly md−1times.
Theterm`Adi' meansthatin theintegralthestringonatenationofallwordswithsubsripti takethe md valuesexatlyone.
Thesymbol`(Adi)k'meansthatintheintegralthestringonatenationofallwordswithsubsriptitake
themd valuesexatlyktimes.
Thesymbol`Eqi'foundfortwodierentwordsmeansthatthesumsofallvaluestakenonthosepartiular
wordsareequal.
2.1.2 Integral properties ofthe AES
In orderto well understandthe priniples ofanintegralproperty, wegivetheexampleof theAES(Rijndael-
128). Consideraolletionof 256texts, whihhavedierentvaluesin onebyte and equalvaluesin allother
bytes. Thenit follows that aftertworounds ofenryption thetexts takeall256valuesin eah of thesixteen
bytes, andthat after threerounds ofenryption thesumofthe256bytesin eahpositionis zeroasshownin
[2℄. Also,notethatthereare16suhintegralssinethepositionofthenon-onstantbyteintheplaintextsan
be in any of thesixteen bytes. Theintegral isillustrated in Figure 1(where an arrowrepresentsaomplete
round). Thisintegralan be usedto attakfourrounds ofRijndael-128 withsmall omplexity(note that the
nal roundisspeial anddoesnotinludeMixColumns)ountingoveronekeybyte atatime. Simply guessa
keybyte andomputebyte-wisebakwardstohekifthesumofall256valuesiszero.
This 3-round property ould be extended by one round at the beginning using 232 plaintexts, i.e. to a 4th-orderintegralpropertyasdesribedin[5℄. Themainobservationisthatthe232plaintextsouldbeseenas 224opiesoftheaboverst-orderintegrals(startingintheseondround). Sinethetextineahintegralsums
to zeroin anybyte afterthefourthround, sodoesthesumof all232 plaintexts. Therunningtimeomplexity of this attak greatlyimprovestheprevious oneespeially onerning thekey-bytes searh. Figure 2 depits
this four-roundfourth-orderintegralagainstRijndael-128.
A C C C C C C C C C C C C C C C
→
A C C C A C C C A C C C A C C C
→
A A A A A A A A A A A A A A A A
→
S S S S S S S S S S S S S S S S
Figure 1: The3-roundrst-orderintegralforRijndael-128,where S= 0
2.1.3 Anintegral propertyfor Rijndael-256
In [7℄, theauthors show a new3th-order integral property against 4-round of Rijndael-256 whih essentially
reliesontheslowdiusionofRijndael-256. Usingthepreviousnotations,weouldeasilydesribethisproperty
asshownonFigure3.
A40 C C C C A40 C C C C A40 C C C C A40
→
A40 C C C A40 C C C A40 C C C A40 C C C
→
A41 A41 A41 A41 A42 A42 A42 A42 A43 A43 A43 A43 A44 A44 A44 A44
→
A4 A4 A4 A4 A4 A4 A4 A4 A4 A4 A4 A4 A4 A4 A4 A4
→
S S S S S S S S S S S S S S S S
Figure2: A4-roundfourth-orderintegralforRijndael-128with232texts.
A30 C C C C C C C A30 C C C C C C C A30 C C C C C C C C C C C C C C C
→
A30 C C C C C A30 A30 A31 C C C C C A31 A31 A32 C C C C C A32 A32 A33 C C C C C A33 A33
→
A20 C A20 A24 A24 A30 A30 A30 A21 C A21 A25 A25 A31 A31 A31 A22 C A22 A26 A26 A32 A32 A32 A23 C A23 A27 A27 A33 A33 A33
→
? A3 A3 A3 ? A3 A3 A3
? A3 A3 A3 ? A3 A3 A3
? A3 A3 A3 ? A3 A3 A3
? A3 A3 A3 ? A3 A3 A3
→
? ? S ? ? ? S ?
? ? S ? ? ? S ?
? ? S ? ? ? S ?
? ? S ? ? ? S ?
Figure3: 4-round3th-orderintegralpropertyofRijndael-256
As shown in [7℄, this partiular property ould be extended by one round at the beginning using a 4th-
order integral(onsideringthat itrepresents28 opiesofthe3th-orderfour roundintegral)to builda5-round
distinguisherthatuses232plaintextstestingifthesumtakenoverallinitialvaluesofapartiularbytebelonging
tothethirdortotheseventholumnisequaltozero. Thisleadstotherst9-roundattakagainstRijndael-256.
2.2 The new integral properties of Rijndael-b
Inthis setion,wepresentnewintegralpropertiesagainstRijndael-b. Those propertieshavebeenfoundusing
alwaysthesamemethodology: onsider afteroneround afullolumn ofativebytes, say(y0, y1, y2, y3),then
after tworounds,expresseahbyteoftheorrespondingiphertextaordingto thisolumn. Thus,oneould
see thedependeniesbetweentworounds bytesand andiretly deduethe bytesthat must takeallpossible
valuestoobtainbalanedbytesattheendofthethirdroundandthuspreditablesumsattheendofthefourth
round.
2.2.1 Rijndael-256
Wehavefoundanother4-roundintegralpropertyof2th-orderasshowningure4. Usingomputersimulations,
wehavefound423th-orderintegralpropertiesand482th-orderintegralproperty(essentiallytheshiftedones).
As previouslydone, this 2th-order four-roundpropertyould beextended byone round at the beginning
using a 8th-order integral (onsidering that it represents 248 opies of the 2th-order four round integral) as
previouslydesribedandbytworoundsatthebeginningusinga24th-orderintegralasdonein[8℄andasshown
in Figure5.
Thus, weobtain rst afour-rounddistinguisher that uses 216 plaintexts testing if thesum takenoverall
initial valuesofapartiularbytebelongingtothethird,tothesixth,totheseventhortotheeightholumnis
equaltozero. Wealsoobtainave-rounddistinguisher thatuses264 plaintextstesting ifthesamesumtaken
overthe264valuesisalsoequaltozero. Thesix-rounddistinguisherthat uses2192plaintextsisthesameeven
iftheorrespondingmemoryomplexityishereunreahable.
A20 C C C C C C C C A20 C C C C C C C C C C C C C C C C C C C C C C
→
A20 C C C C C C C A20 C C C C C C C A21 C C C C C C C A21 C C C C C C C
→
A20 C C C A20 A24 C A24 A21 C C C A21 A25 C A25 A22 C C C A22 A26 C A26 A23 C C C A23 A27 C A27
→
A2 A2 A2 A2 ? A2 A2 A2 A2 A2 A2 A2 ? A2 A2 A2 A2 A2 A2 A2 ? A2 A2 A2 A2 A2 A2 A2 ? A2 A2 A2
→
? ? S ? ? S S S
? ? S ? ? S S S
? ? S ? ? S S S
? ? S ? ? S S S
Figure4: the2th-orderintegralpropertyofRijndael-256
A240 A240 A240 A240 A240 A240 C C C A240 A240 A240 A240 A240 A240 C A21 C C A240 A240 A240 A240 A240 A21 A240 C C A240 A240 A240 A240
→
A80 A80 C C C C C C C A80 A80 C C C C C C C C A80 A80 C C C C C C C A80 A80 C C
→
A20 C C C C C C C C A20 C C C C C C C C C C C C C C C C C C C C C C
Figure5: ExtensionofRijndael-256bytworoundsatthebeginningusinga24th-orderintegral
2.2.2 Rijndael-224
In the sameway, wehave founda 2th-order4-round integralproperty for Rijndael-224 asshown in gure 6.
Wehavefound422th-orderintegralproperties(essentiallytheshiftedones).
A20 C C C C C C C A20 C C C C C C C C C C C C C C C C C C C
→
A20 C C C C C C A20 C C C C C C A21 C C C C C C A21 C C C C C C
→
A20 C C A20 C A24 A24
A21 C C A21 C A25 A25 A22 C C A22 C A26 A26 A23 C C A23 C A27 A27
→
A2 A2 A2 ? A2 ? ? A2 A2 A2 ? A2 ? ? A2 A2 A2 ? A2 ? ? A2 A2 A2 ? A2 ? ?
→
S ? ? ? ? ? ? S ? ? ? ? ? ? S ? ? ? ? ? ? S ? ? ? ? ? ?
Figure6: Four-round2th-orderintegralpropertyofRijndael-224
As previouslydone, this 2th-order four-roundpropertyould beextended byone round at the beginning
using a 8th-order integral (onsidering that it represents 248 opies of the 2th-order four-round integral) as
previouslydesribedandbytworoundsat thebeginningusinga24th-orderintegral.
Thus, weobtain rsta four-rounddistinguisher that uses 216 plaintexts testing if thesum takenoverall
initial values of apartiular byte belonging to therst olumn is equalto zero. Wealso obtaina ve-round
distinguisher that uses 264 plaintextstesting if the samesumtaken overthe 264 valuesis also equalto zero.
Thesix-rounddistinguisherthat uses2192 plaintextsisthesame.
2.2.3 Rijndael-192
In the sameway, wehave founda 2th-order4-round integralproperty for Rijndael-192 asshown in gure 7.
This integralis dierentfrom theothersbeauseitimpliesthat twopartiularsumsareequalsbetweenthem
and notto zero. This partiularpropertyomesfrom thefat that thersttermEq0 isalinearombination
of 4partiulartermsof thepreviousround. Inthose words,three arebalaned (i.e. theomplete sumat the