Question: kindly convert the pseudo code to a java code Cryptography Lab (DES Cipher) Convert the following pseudocode for DES cipher into a java or python

Cryptography Lab (DES Cipher) Convert the following pseudocode for DES cipher into a java or python code: Cipher (plainBlock [64], RoundKeys [16,48]. cipherBlock(64]) permute (64, 64, plainBlock, inBlock, InitialPermutationTable) split (64,32, inBlock, leftBlock, rightBlock) for (round =1 to 16 ) mixer (leftBlock, rightBlock, RoundKeys[round]) if (round! = 16) swapper (leftBlock, rightBlock) combine (32,64, leftBlock, rightBlock, outBlock) permute (64,64, outBlock, cipherBlock, FinalPermutationTable) mixer (leftBlock[32], rightBlock[32], RoundKey[48]) i. copy (32, rightBlock, Tl) function (TI, RoundKey, T2) exclusiveOr (32, leftBlock, T2, T3) copy (32, T3, rightBlock) swapper (leftBlock [32]. rigthBlock[32]) copy (32, leftBlock, T) copy (32, rightBlock, leftBlock) copy (32, T, rightBlock) function (inBlock [32], RoundKey[48], outBlock[32]) permute (32, 48, inBlock, TI, ExpansionPermutationTable) exclusiveOr (48, T1, RoundKey. T2) substitute (T2, T3, SubstituteTables) permute (32,32, T3, outBlock. StraighPermutationTable) substitute (inBlock[32], outBlock 48]. SubstitutionTables [8,4,16]) Convert the following pseudocede for DES round-keys geberation into a java or python code: Key_Generator (keyWithParities[64]. RoundKeys[16. 48]. Shiftable[16]) permute (64,56, key HithParities, cipherKey. ParityDropTable) split (56,28, cipherKey, leftKey, rightKey) for (round =1 to 16) shiftLeft (leftKey, ShiftTable[round]) shiftLeft (rightKey, Shiftable[round]) combine (28. 56, leftKey, rightKey. preRoundKey) permute (56, 48, preRoundKey. RoundKeys[round]. Key CompressionTable) shift Left (block [28], numOjShifts) for (i = I to numOfSlifts) i T block [1] for (j=2 to 28)} block [j1] block [i] block [28]T Ms. Sundos Sobahi
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
