0
$\begingroup$

"With block cipher, each plaintext block is XOR-ed with the previous ciphertext block and then encrypted, this is known as block chaining. This prevents identical blocks of plaintext from producing the same ciphertext each time they are encrypted"

What happens inside the clause of the "XOR" statement, to make two equal plain text blocks encode into two different cipher text blocks?

$\endgroup$
3
  • 1
    $\begingroup$ What do you mean by "xor inBlock chaining"? I can't understand what you mean by "standard action to take... to make..." either. Please edit your question to elaborate on what you are asking. Give us some context and background, define all terms (e.g., inBlock), perhaps tell us your motivation -- all of that might help to understand what you're asking. $\endgroup$
    – D.W.
    Commented Jan 15, 2020 at 5:47
  • $\begingroup$ I added context and reworded the question $\endgroup$
    – Dylan
    Commented Jan 15, 2020 at 8:48
  • $\begingroup$ It appears you are quoting from somewhere. Please provide a full reference to the original source of all quoted material. This may help us get you a better answer, and helps others with a similar question find this page via search. $\endgroup$
    – D.W.
    Commented Jan 15, 2020 at 9:36

1 Answer 1

1
$\begingroup$

Say you have blocks ABCDEA that you want to encrypt. If you do this naively, then the first and second A produce the same encrypted result, and an attacker would know that your first and last block are the same.

Instead you encrypt to A’B’C’ etc. by encrypting A -> A’, A’ XOR B ->B’, B’ XOR C -> C’, ..., E’ XOR A -> F’. It looks like you are encrypting random data, nothing an attacker can do.

The identical plain text blocks are XOR-ed with different previously encrypted blocks, that what’s making them different.

$\endgroup$
1
  • $\begingroup$ Is there more meaning to the term "XOR-ed" than just checking they're different? If not then how does a check change the cypher text to a non-identical form. $\endgroup$
    – Dylan
    Commented Jan 19, 2020 at 6:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.