You are to decrypt a ciphertext that was encrypted using the permutation p : {0,1} 4
Question:
You are to decrypt a ciphertext that was encrypted using the permutation p : {0,1}4 → {0,1}4 defined as p(x) = ~(x >>> 1), ie, rotate x RIGHT 1 bit and then negate all the bits. For example p(0011) = 0110 because 0011>>>1 = 1001 and ~1001 = 0110. Thus p-1(x) = (~x <<< 1). If you need an IV use 0101. If you need a nonce use 01. If the mode uses padding to handle arbitrary plaintext lengths, remove 10* padding. If you need a counter, begin at 1.
Decrypt the ciphertext 1110 0001 1010 given that it was produced using ECB mode. Write four bits per box, with the final box possibly having fewer bits.
Decrypt the ciphertext 1110 0001 1010 given that it was produced using CBC mode. Write four bits per box, with the final box possibly having fewer bits.
Decrypt the ciphertext 1110 0001 1010 given that it was produced using CTR mode. Write four bits per box, with the final box possibly having fewer bits.
Decrypt the ciphertext 1110 0001 1010 given that it was produced using OFB mode. Write four bits per box, with the final box possibly having fewer bits.
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi