Question: Please convertthis C code into java. There are 2 requirements: (1) You also need to display the 128-bit encryption results in each of the 8
Please convertthis C code into java. There are 2 requirements:
(1) You also need to display the 128-bit encryption results in each of the 8 rounds.
(2) In your main method, you need to allow the user to input a 128-bit plaintext and a 128- bit keys, then the program should display the ciphertext.
/ Substitute the bytes of a block chunk with the SEAL inverse S-Boxx/ void INV_S(uint32_t block_chunk) { for(int i = 0; i > Bui); block_chunk block_chunk 6 0xFF > 11) (carry 21); // Rotate carry chunk block (3) Carry carry block 11); carry carry >> 11) block (2) Carry (carry > 11) block(1) - carry (carry 21); 7XOR the block chunk against the key chunk and round number and run through inverse S-box/ block [0 key (14) * i; INV_S (block(0)); / Substitute the bytes of a block chunk with the SEAL inverse S-Boxx/ void INV_S(uint32_t block_chunk) { for(int i = 0; i > Bui); block_chunk block_chunk 6 0xFF > 11) (carry 21); // Rotate carry chunk block (3) Carry carry block 11); carry carry >> 11) block (2) Carry (carry > 11) block(1) - carry (carry 21); 7XOR the block chunk against the key chunk and round number and run through inverse S-box/ block [0 key (14) * i; INV_S (block(0))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
