How can we find the private key?

  • Context: MHB 
  • Thread starter Thread starter mathmari
  • Start date Start date
Click For Summary
SUMMARY

Alice employs the ElGamal signature scheme with parameters $p=47$, $q=23$, and $g=2$, generating signatures for two messages with hash values $h(m_1)=4$ and $h(m_2)=3$. The signatures produced are $(r_1, s_1)=(14, 8)$ and $(r_2, s_2)=(14, 15)$. The key to finding Alice's private key lies in recognizing that since $r_1 = r_2$, the nonce values $k_1$ and $k_2$ are equal. By substituting the known values into the corrected equations for $s_1$ and $s_2$, one can derive two equations with the unknowns $k$ and $a$.

PREREQUISITES
  • Understanding of the ElGamal signature scheme
  • Familiarity with modular arithmetic
  • Knowledge of hash functions and their properties
  • Basic algebra for solving equations
NEXT STEPS
  • Study the ElGamal signature scheme in detail, focusing on its mathematical foundations
  • Learn about modular arithmetic and its applications in cryptography
  • Explore methods for solving systems of equations in algebra
  • Investigate the implications of using identical nonces in cryptographic signatures
USEFUL FOR

Cryptographers, security researchers, and students studying digital signatures and cryptographic protocols will benefit from this discussion.

mathmari
Gold Member
MHB
Messages
4,984
Reaction score
7
Hey! :o

Alice uses the ElGamal signature scheme with the variables $p=47$, $q=23$ and $g=2$. For two different messages $m_1, m_2$ with $h(m_1)=4, h(m_2)=3$ she produces the signatures $(r_1, s_1)=(14, 8)$ and $r_2, s_2)=(14, 15)$. Calculate the private key of Alice, without calculating a discrete logarithm.

We have the following relations: $$r_1=g^{k_1} \ \ , \ \ s_1=k_1^{-1}(h(m_1)+af(r))\pmod q \\ r_1=g^{k_2} \ \ , \ \ s_2=k_2^{-1} (h(m_2)+af(r))\pmod q$$

What can we do to find $a$ ?? (Wondering)
 
Mathematics news on Phys.org
mathmari said:
Hey! :o

Alice uses the ElGamal signature scheme with the variables $p=47$, $q=23$ and $g=2$. For two different messages $m_1, m_2$ with $h(m_1)=4, h(m_2)=3$ she produces the signatures $(r_1, s_1)=(14, 8)$ and $r_2, s_2)=(14, 15)$. Calculate the private key of Alice, without calculating a discrete logarithm.

We have the following relations: $$r_1=g^{k_1} \ \ , \ \ s_1=k_1^{-1}(h(m_1)+af(r))\pmod q \\ r_1=g^{k_2} \ \ , \ \ s_2=k_2^{-1} (h(m_2)+af(r))\pmod q$$

What can we do to find $a$ ?? (Wondering)

Hi mathmari,

I don't understand the $f$ in your relations. The relations should be,

\[s_1=k_1^{-1}(h(m_1)+ar_1)\pmod q \]

\[s_2=k_2^{-1} (h(m_2)+ar_2)\pmod q$\]

Refer: https://en.wikipedia.org/wiki/ElGamal_signature_scheme

Note that, $r_1=g^{k_1}\mbox{ and }r_2=g^{k_2}$. Since $r_1=r_2$ it implies that, $k_1=k_2=k$.

Now all you a got to do is substitute the given values into the equations and you'll get two equations with $k$ and $a$ as unknowns.
 
Ok... Thanks a lot! (flower)
 
mathmari said:
Ok... Thanks a lot! (flower)

You are welcome. :)
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 66 ·
3
Replies
66
Views
6K
  • · Replies 8 ·
Replies
8
Views
6K
  • · Replies 12 ·
Replies
12
Views
2K