1

I want to know the answer for the question above, given that we encrypt a message that ends with a "0" and the encryption key is concatenated with a "0" to, in that case that case the cyphertext would also end with a zero, knowing that the attacker would know that the last bit of the key and the message is the same, would that cause a problem in case we're using a OTP to encrypt our messages?

dev
  • 49
  • 1
  • 9

1 Answers1

2

No, this wouldn't cause problems.
The reason for this is the way how perfect secrecy is defined.
The definition says that a scheme is perfectly secret if an attacker doesn't learn anything new about the message when giving a cipher text, also see my other answer for a more "mathy" formulation.

So an attacker knows a certain bit is fixed, thus he can't ever learn anything new about it from the cipher text. And he also can't learn anything new about the rest of the message because only the corresponding key bit is fixed and the rest of the key stream is still uniformly and independently random and is thus still an OTP.

SEJPM
  • 45,967
  • 7
  • 99
  • 205