juan_gandhi: (Default)
[personal profile] juan_gandhi
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`. 

Date: 2020-02-21 11:58 pm (UTC)
From: [personal profile] malobukov
Какая разница. RSA используется только чтоб подпись проверить. Сессионный ключ уже какой-нибудь Диффи-Хелман, дальше вообще симметричный шифр вроде AES или ChaCha20, где шифрование и дешифрование по времени одинаково.

Date: 2020-02-22 01:49 am (UTC)
zuka: (Default)
From: [personal profile] zuka
и то уже ECDSA для подписей

Date: 2020-02-22 04:58 am (UTC)
archaicos: Шарж (Default)
From: [personal profile] archaicos
А у меня сразу мысль «Чтоб никто не догадался!».
В смысле, народ уже начал придумывать приёмы угадывания ключей по всяким внешним признакам работы кода, по тому сколько времени что-то занимает, сколько памяти использует... И вот раньше все гении работали над тем чтобы всё ускорить, ведь так же лучше, да? А теперь иногда нужно и притормозить, т.к. оказывается, что иногда лучше медленно, да лучше.

Date: 2020-02-22 08:32 am (UTC)
From: [personal profile] sassa_nf
There are simple timing attacks that help discover one bit at a time.

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.

Date: 2020-02-22 05:31 am (UTC)
From: [personal profile] ichthuss
Low Hamming 'd' value would compromise security completely. 'd' should be random-looking. So the choice is between "low Hamming 'e', high Hamming 'd'" and "high Hamming value for both 'e' and 'd'".

Date: 2020-02-22 08:21 am (UTC)
From: [personal profile] sassa_nf
That's what raising to d is, taking root of power e.

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.

Date: 2020-02-22 08:07 am (UTC)
From: [personal profile] sassa_nf
E is public, so it doesn't matter what it is. You may just as well choose the one that makes life easy. So they choose some small number with two or three ones.

D is computed from E, so you can't choose what you get.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

June 2025

S M T W T F S
1 2345 6 7
8 9 10 11 121314
15161718 1920 21
222324252627 28
29 30     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 3rd, 2025 11:36 pm
Powered by Dreamwidth Studios