RSA question
Feb. 21st, 2020 02:12 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
WTF they do it now that encryption takes less time than decryption? Is not stuff encrypted usually once and decrypted many times? Or what's the reason? I mean the `e` in encryption key being low Hamming measure, instead of `d`.
no subject
Date: 2020-02-21 11:58 pm (UTC)no subject
Date: 2020-02-22 01:49 am (UTC)no subject
Date: 2020-02-22 02:57 am (UTC)no subject
Date: 2020-02-22 04:58 am (UTC)В смысле, народ уже начал придумывать приёмы угадывания ключей по всяким внешним признакам работы кода, по тому сколько времени что-то занимает, сколько памяти использует... И вот раньше все гении работали над тем чтобы всё ускорить, ведь так же лучше, да? А теперь иногда нужно и притормозить, т.к. оказывается, что иногда лучше медленно, да лучше.
no subject
Date: 2020-02-22 05:13 am (UTC)no subject
Date: 2020-02-22 08:32 am (UTC)Eg "all [x == y for x,y in zip(expected, found)]"
Allows the observer find how many bytes were found correct by timing the execution. This simplifies search from intractable to tractable.
no subject
Date: 2020-02-22 05:31 am (UTC)no subject
Date: 2020-02-22 05:53 am (UTC)Anyway, I suddenly discovered lately that I forgot that part, about choosing `d` and `e` in RSA, and got confused.
Thanks!
BTW, do you want to fix the wiki article? https://en.wikipedia.org/wiki/RSA_(cryptosystem)
no subject
Date: 2020-02-22 08:21 am (UTC)D is not chosen, it is computed as e^-1 mod (p-1)(q-1). Which makes m^d the root of degree e of m. No one can compute d, because they don't know (p-1)(q-1), because they can't factor pq.
Now, p and q are random, so d is also random, even if e isn't. E is small, so signature verification is faster. Because you can afford to choose e to make someone's life easier.
no subject
Date: 2020-02-22 08:07 am (UTC)D is computed from E, so you can't choose what you get.