In: Computer Science
1.(a) Will B probably still be able to figure out that an error has taken place?
i)Yes.
ii)B will still not be able to find out that the error has taken place,but error detection is possible by exploiting ECC structure. If you model the cipher as a noisy communications channel, you will find very quickly that you cannot design an ECC to fight the error that it introduces. It seems cipher design applies the same principles used in ECC, but in an effort to minimize chance of message recovery, instead of maximize it.We can use simple encode-decode technique to find out what the message was before encryption.
1.(b) Will B probably still be able to recover the original message M?
i)Yes
ii)
With some modes you can encode then encrypt, specifically stream cipher modes (CTR, OFB). Bit errors during transmission translate to identical bit errors in the encoded plaintext, and error correction will work as intended.
However, with standard block cipher modes (ECB, CBC), the entire block is encrypted, and a 1 bit error in the ciphertext creates many bit changes to the decrypted block due to the avalanche effect. Depending on the type of correction used, this may be correctable, but it is generally better to apply the code to the ciphertext.But still the message is recoverable.
The correct procedure is Compress →→ Encrypt →→ ECC →→ Transmit.
You would have no hope of error recovery if you were to apply error correcting information prior to encryption.