Beruflich Dokumente
Kultur Dokumente
MODERNBLOCKCIPHERS
Modernblockciphersaredesignedassubstitution ciphers/substitranspostioncombination
ComponentsofaModernBlock Cipher
Amodernblockcipherismadeofacombinationof
transpositionunits(PBoxes)and substitutionunits(SBoxes)
PBoxes
Transposesbits Threetypesfoundinmodernblockciphers
Straight,Expansion,Compression
StraightPBox
Theaboveone(64x64)fors/wimplementation Prewiredforh/wimplementation
CompressionPBox
'n'inputsand'm'(m<n)outputs Eg.a32x24permutationtableforacomp.PBox
Inputs7,8,9,15,16,23,24,25areblocked
ExpansionPBox
'n'inputsand'm'(m>n)outputs Eg.a12x16permut.tab.foranExpansionPBox
Inputs1,3,9and12aremappedto2outputs
InvertibilityofPBoxes
Straightpboxesareinvertiblebutnottheothers
Substitutionbox(SBox)
NonLinear???
InvertibilityofSBoxes
ExclusiveOR(XOR)
PropertiesofXORinGF(2n)fields
xXOR(111...1)=x'
ExclusiveOR(XOR)
InvertibilityofXORoperation
Circularshift
Swapoperation
Split&Combineoperation
ProductCiphers
Theideaofdiffusionistohidetherelationshipb/w CTandPT
ACTsymbol/bitdependentonsome/allPTs/b
Theideaofconfusionistohidetherelationshipb/w CTandKey
Ifasinglebitofkeychanged,most/allbitsof CTchanged
Productciphers
Rounds
Keyschedule/generator
Middletext
Aproductcipherwith2rounds
Confusion&DiffusionwithSBox&PBox
Twoclassesofproductciphers
Classthatusebothinvertibleandnoninvertible components
Classthatuseonlyinvertiblecomponents
FiestelCiphers
Dealingwithnoninvertibleelements,Eg. noninvertible
Heref(K)isnoninvertible
AnimprovedFiestelDesign
InputtothefunctionisKey+apartofPT
R1mustbe=R3 R1sentunencrypted(flaw)
FiestelCipherfinaldesign
NonFiestelCiphers
MODERNSTREAMCIPHERS
EncryptionandDecryptiondonerbitsatatime Ciphershave
MODERNSTREAMCIPHERS
Synchronousstreamciphers
KeystreamisindependentofPTorCTstream Eg.Onetimepad(bitoriented)
SimpleXORoperation Idealcipherbutdifficulttoimplementinpractice
FeedbackShiftRegister(FSR)
AskeystreamgeneratorforOnetimePad
FeedbackShiftRegister(FSR)
Thecellsareinitializedwithanmbitwordcalled seed seed Wheneveranoutputbitisneeded,everybitis shiftedonepositiontotheright Rightmostbitistheoutput FSRscanbelinearornonlinear linear InaLFSR,outputbitisalinearfunctionof b0,b1,...,bm1
FeedbackShiftRegister(FSR)
AnLFSRwith5cellsinwhichb5=b4^b2^b0
FSR
NLFSR(NonLinearFSR)
Nonsynchronousstreamciphers
EachkeyinthekeystreamdependsonpreviousPT orCTsymbol