3 ms·
The output has to be indistinguishable from random, and colliding n bits needs to take an exponential amount of time. Output length can be anything. As long a
by Dylan16807 6y ago
The output has to be indistinguishable from random, and colliding n bits needs to take an exponential amount of time.
Output length can be anything. As long as it's indistinguishable from random, the chance of collision will be exponentially rare, and you can truncate or concatenate to get the length you want.
- verandaguy 6y agoYou're correct on all points, though this kind of implementation (with variable-length output) is fairly rare AFAIK. Having a fixed-length output lets you reliably define for example a database field length. I'd love to see a practical implementation of that though, if you know where to find that kind of project off-hand!
- Dylan16807 6y agoI didn't mean "variable" when I said "anything". I was saying it didn't matter. Variable length would be valid, but so is a fixed 200 bit output. The main thing I wanted to express is that "provably secure" doesn't mean no collisions.