您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > 第3章 分组密码和数据加密标准
第3章分组密码与数据加密标准ModernBlockCiphersmodernblockciphersoneofthemostwidelyusedtypesofcryptographicalgorithmsprovidesecrecy/authenticationservicesfocusonDES(DataEncryptionStandard)toillustrateblockcipherdesignprinciplesBlockvsStreamCiphersblockciphersprocessmessagesinblocks,eachofwhichisthenen/decryptedlikeasubstitutiononverybigcharacters•64-bitsormorestreamciphersprocessmessagesabitorbyteatatimewhenen/decryptingmanycurrentciphersareblockciphersbroaderrangeofapplicationsBlockCipherPrinciplesmostsymmetricblockciphersarebasedonaFeistelCipherStructureneededsincemustbeabletodecryptciphertexttorecovermessagesefficientlyblockcipherslooklikeanextremelylargesubstitution•wouldneedtableof264entriesfora64-bitblockinsteadcreatefromsmallerbuildingblocksusingideaofaproductcipherIdealBlockCipherClaudeShannonandSubstitution-PermutationCiphersClaudeShannonintroducedideaofsubstitution-permutation(S-P)networksin1949paperformbasisofmodernblockciphersS-Pnetsarebasedonthetwoprimitivecryptographicoperationsseenbefore:•substitution(S-box)•permutation(P-box)provideconfusion&diffusionofmessage&keyConfusionandDiffusioncipherneedstocompletelyobscurestatisticalpropertiesoforiginalmessageaone-timepaddoesthismorepracticallyShannonsuggestedcombiningS&Pelementstoobtain:diffusion–dissipatesstatisticalstructureofplaintextoverbulkofciphertextconfusion–makesrelationshipbetweenciphertextandkeyascomplexaspossibleFeistelCipherStructureFeisteldevisedFeistelcipherbasedonconceptofinvertibleproductcipherpartitionsinputblockintotwohalvesprocessthroughmultipleroundswhichperformasubstitutiononleftdatahalfbasedonroundfunctionofrighthalf&subkeythenhavepermutationswappinghalvesimplementsShannon’sS-PnetconceptFeistelCipherStructureFeistelCipherDesignElementsblocksizekeysizenumberofroundssubkeygenerationalgorithmroundfunctionfastsoftwareen/decryptioneaseofanalysisFeistelCipherDecryptionDataEncryptionStandard(DES)mostwidelyusedblockcipherinworldadoptedin1977byNBS(nowNIST)asFIPSPUB46encrypts64-bitdatausing56-bitkeyhaswidespreadusehasbeenconsiderablecontroversyoveritssecurityDESHistoryIBMdevelopedLucifercipherbyteamledbyFeistelinlate60’sused64-bitdatablockswith128-bitkeythenredevelopedasacommercialcipherwithinputfromNSAandothersin1973NBSissuedrequestforproposalsforanationalcipherstandardIBMsubmittedtheirrevisedLuciferwhichwaseventuallyacceptedastheDESDESDesignControversyalthoughDESstandardispublic,itwasconsiderablecontroversyoverdesigninchoiceof56-bitkey(vsLucifer128-bit)becausedesigncriteriawereclassifiedsubsequenteventsandpublicanalysisshowinfactdesignwasappropriateuseofDEShasflourishedespeciallyinfinancialapplicationsstillstandardisedforlegacyapplicationuseDESEncryptionOverviewInitialPermutationIPfirststepofthedatacomputationIPreorderstheinputdatabitsevenbitstoLHhalf,oddbitstoRHhalfquiteregularinstructure(easyinh/w)example:IP(675a69675e5a6b5a)=(ffb2194d004df6fb)DESRoundStructureusestwo32-bitL&RhalvesasforanyFeistelciphercandescribeas:Li=Ri–1Ri=Li–1F(Ri–1,Ki)Ftakes32-bitRhalfand48-bitsubkey:•expandsRto48-bitsusingpermE•addstosubkeyusingXOR•passesthrough8S-boxestoget32-bitresult•finallypermutesusing32-bitpermPDESRoundStructureSubstitutionBoxesShaveeightS-boxeswhichmap6to4bitseachS-boxisactually4little4bitboxesouterbits1&6(rowbits)selectonerowof4innerbits2-5(colbits)aresubstituted,resultis8lotsof4bits,or32bitsrowselectiondependsonbothdata&key•featureknownasautoclaving(autokeying)•example:S(1809123d11173839)=5fd25e03DESKeyScheduleformssubkeysusedineachroundinitialpermutationofthekey(PC1)whichselects56-bitsintwo28-bithalves16stagesconsistingof:•rotatingeachhalfseparatelyeither1or2placesdependingonthekeyrotationscheduleK•selecting24-bitsfromeachhalf&permutingthembyPC2foruseinroundfunctionFnotepracticaluseissuesinh/wvss/wDESDecryptiondecryptmustunwindstepsofdatacomputationwithFeisteldesign,doencryptionstepsagainusingsubkeysinreverseorder(SK16…SK1)IPundoesfinalFPstepofencryption1stroundwithSK16undoes16thencryptround….16throundwithSK1undoes1stencryptroundthenfinalFPundoesinitialencryptionIPthusrecoveringoriginaldatavalueAvalancheEffectkeydesirablepropertyofencryptionalgorithmwhereachangeofoneinputorkeybitresultsinchangingapproxhalfoutputbitsmakingattemptsto“home-in”byguessingkeysimpossibleDESexhibitsstrongavalancheStrengthofDES–KeySize56-bitkeyshave256=7.2x1016valuesbruteforcesearchlookshardrecentadvanceshaveshownispossible•in1997onInternetinafewmonths•in1998ondedicatedh/w(EFF)inafewdays•in1999abovecombinedin22hrs!stillmustbeabletorecognizeplaintextmustnowconsideralternativestoDESStrengthofDES–AnalyticAttacksnowhaveseveralanalyticattacksonDESutilisesomedeepstructureofthecipher•bygatheringinformationaboutencryptions•caneventuallyrecoversome/allofthesub-keybits•ifnecessarythenexhaustivelysearchfortherestgenerallythesearestatisticalattacks•differentialcryptanalysis•linearcryptanalysis•relatedkeyattacksStrengthofDES–TimingAttacksattacksactualimplementationofcipheruseknowledgeofconseq
本文标题:第3章 分组密码和数据加密标准
链接地址:https://www.777doc.com/doc-3970780 .html