Wrox Programmer Forums
|
BOOK: Beginning Cryptography with Java
This is the forum to discuss the Wrox book Beginning Cryptography with Java by David Hook; ISBN: 9780764596339
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Cryptography with Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 29th, 2008, 06:45 AM
Authorized User
 
Join Date: Apr 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default DH and parameters P and G


Hello again,

in chapter 4 (page 106-107) in DH Algorithm discussion, it is not mentioned whether the P and G parameters (P large prime number, G generators for numbers) should be kept secret or not.

In the example that follows the discussion, everything is in the single file (both parties) so it is not clear how they got to agree on P and G.

So is it safe to make P and G public ?

And does it make sense to change P and G over time, or is it safe to use the same parameters ? ( it is mentioned in javadocs for DHParameterSpec about a central authority generating parameters for parties seeking to exchange keys, and that there might be more than one instance of the parameters)

Sincerely
Ray

 
Old April 29th, 2008, 10:37 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

Yes P and G can be public, as you've realised they have to be shared to make it possible for both parties to generate appropriate keys. It's regarded as safe to keep these constant over time.

Regards,

David

PS. as an aside, the Java APIs actually indicate this, as the parameters are part of the details available off a public key.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameters dcct84 C# 6 September 27th, 2007 05:26 PM
parameters dpkbahuguna ASP.NET 1.x and 2.0 Application Design 0 April 3rd, 2007 07:27 AM
Parameters Dharam80 Access 3 August 19th, 2005 01:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.