Cryptography Asked by user81147 on October 24, 2021
Here is some information we got :
We know the value of $n$, with size $1043$.
We know the value of $p$ (size $20$) and $q$ (size $1023$) as the factors.
$e = 65537.$
$varphi(n)$ = $(q-1)(p-1)$
When I calculated $gcd$ and $text{modinv}$, I got :
$gcd(e,varphi(n)) = 65537$
$modinv(e,varphi(n)) = 1 $
So we can tell that they are not relatively prime.
So, how to compute the d, and get the value of m?
I’m not that good with math, so I cant understanding well the theory.
so can anyone please make an example implementation or write a clear formula?
Well, if we assume that:
Then, one way to derive the possible plaintexts is to compute:
$$C^d cdot L^i bmod n$$
where:
Now, if we iterate over the possible values of $i$, this will give $e$ possible values for the plaintext (unless $C$ happens to be a multiple of $p$). The original plaintext will be one of these values. All these values, when raised to the power $e$, will result in the ciphertext, hence we cannot distinguish from the ciphertext which one it is.
Answered by poncho on October 24, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP