Score:1

Why do stream ciphers repeat and how is that a threat?

us flag

If you have to generate a sufficiently long keystream, why would the keystream eventually repeat?

If the keystream repeats does it pose the threat of being decrypted by a hacker? How could one use it to that advantage?

Score:1
vu flag

why would the keystream eventually repeat?

Because all stream ciphers have a finite state.

... does it pose the threat ... How could one use it to that advantage?

If the repetition period of the stream cipher is known, the adversary can choose to carry out chosen ciphertext attack (make the user decrypt) or chosen plaintext attack (make the user encrypt).

Once decrypted plaintext (CCA), or encrypted ciphertext (CPA) is obtained, the attacker can overlap the periods, xor them, and extract distinguishable patterns.

That's just a rough idea, I'm more of a coder than mathematician, so I'm not sure if I've explained completely and correctly.

fgrieu avatar
ng flag
Obvious addition: this is a practical threat only if the known repetition period is small enough that (together with the _modus operandi_ of the stream cipher) repetition can practically occur.
functionEqualsM avatar
us flag
@fgrieu, I'm a bit new to Cryptography could you explain your addition in lamens terms? I apologize.
DannyNiu avatar
vu flag
“only if the known repetition period is small enough”, for example, the counter mode of blockciphers with a 8-bit counter. @functionEqualsM
fgrieu avatar
ng flag
@functionEqualsM: for example: DES-OFB has a large period (expected to be in $[2^{64}\ldots2^{64}$ bytes for most keys), and that's not a practical security issue, because a given key won't be used for nearly that many bytes. The short size of the key, the risk of leak of the key, and the possibility that an IV repeats, are more practical security issues.
functionEqualsM avatar
us flag
Oh okay thanks this helped me better understand. Yeah I'm struggling to understand the concept in cryptography so you have any reference material you would recommend?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.