7 ms·
And nowadays we would probably use the discrete logarithm problem or factoring integers as the one-way functions of choice.
by eru 16y ago
And nowadays we would probably use the discrete logarithm problem or factoring integers as the one-way functions of choice.
- cdavidcash 16y agoThe suggested solution (modular squaring) already reduces to factoring. http://en.wikipedia.org/wiki/One-way_function#Modular_squaring_and_square_roots http://en.wikipedia.org/wiki/One-way_function#Modular_squari... (And we'd use a cryptographic hash function anyway.)
- eru 16y agoThanks!
- sirclueless 16y agoNo, we probably wouldn't. These one-way functions have some nice properties that we use in RSA and Diffie-hellman, like commutativity and the fact that encryption is a permutation, but these properties come with caveats in that they are considerably easier to break. A simple consequence is that we need something like 1024 bits for a strong RSA key, but SHA-256 is still miles out of reach of being attackable.