0

As we know DH algorithm based upon 2 large prime numbers, which are used to be called as prime and base

I am writing app which implements DH key exchange algorithm. From security point of view should I take care for securing prime and base numbers? And what are implications if I wouldn't do that?

Bruno Rohée
  • 3,436
  • 27
  • 32
Barmaley
  • 16,638
  • 18
  • 73
  • 146

1 Answers1

2

the prime number and base are public values and you don't need take care for the security of that values

That values are the equivalent to a public key in RSA

Maks3w
  • 6,014
  • 6
  • 37
  • 42
  • And what will happen if I won't take care of prime/base - could it somehow simplify attacker's life? – Barmaley Sep 11 '12 at 08:13
  • prime/base has the aim to be transmitted to anyone (even attackers) for that are "public". – Maks3w Sep 11 '12 at 08:16
  • public is public key - it's clear. I'm not really sure that prime/base are really public... – Barmaley Sep 11 '12 at 08:35
  • You can see that are public in the Wikipedia article, and are the basic data transmitted to start the communication – Maks3w Sep 11 '12 at 08:39