2 ms·
> this would reduce OTP encryption to being something like an ad hoc stream cipher. What do you think a stream cipher is? CTR-mode stream ciphers are just a P
by loeg 4y ago
> this would reduce OTP encryption to being something like an ad hoc stream cipher.
What do you think a stream cipher is? CTR-mode stream ciphers are just a PRF stream (which a CSPRNG provides) XOR'd with your data, and maybe concatenated with a MAC.
If your PRNG generates the same output twice, your OTP is hosed. Your CTR-mode is also hosed. So, a CSPRNG must not produce the same output twice.
Also, what Thomas said. OTP is not a thing.
- lxgr 4y ago> CTR-mode stream ciphers are just a PRF stream Not exactly a pseudorandom function, but a pseudorandom permutation. This matters as soon as you start approaching the birthday bound: https://crypto.stackexchange.com/questions/59738/what-are-the-risks-of-using-ctr-mode-with-64-bit-blocks https://crypto.stackexchange.com/questions/59738/what-are-th...