[Nym3-commit] r190 - trunk/nym3/Client

laurent at conuropsis.org laurent at conuropsis.org
Mon Apr 11 21:24:50 CEST 2005


Author: laurent
Date: 2005-04-11 21:24:49 +0200 (Mon, 11 Apr 2005)
New Revision: 190

Modified:
   trunk/nym3/Client/Config.py
   trunk/nym3/Client/Main.py
Log:
The key length is now required to be 2048 bits.


Modified: trunk/nym3/Client/Config.py
===================================================================
--- trunk/nym3/Client/Config.py	2005-04-11 19:00:06 UTC (rev 189)
+++ trunk/nym3/Client/Config.py	2005-04-11 19:24:49 UTC (rev 190)
@@ -39,9 +39,9 @@
 	#address where surbs point to"""
 	self.defaultAddress = "smtp:nobody at nowhere.net"
 
-	# Default key length
-	self.default_idkey_length = 1024
-	self.default_enckey_length = 1024
+	# Required key length (§ 4.3.4)
+	self.idkey_length = 2048
+	self.enckey_length = 2048
 
     def load_from_file(self, filename):
 	pass

Modified: trunk/nym3/Client/Main.py
===================================================================
--- trunk/nym3/Client/Main.py	2005-04-11 19:00:06 UTC (rev 189)
+++ trunk/nym3/Client/Main.py	2005-04-11 19:24:49 UTC (rev 190)
@@ -123,8 +123,8 @@
 	emailAddress = ui.prompt("What is the default email address for "
 				 "returning messages")
     account['returnaddress'] = emailAddress
-    idKey = _cr.pk_generate(bits=config.default_idkey_length)
-    encKey = _cr.pk_generate(bits=config.default_enckey_length)
+    idKey = _cr.pk_generate(bits=config.idkey_length)
+    encKey = _cr.pk_generate(bits=config.enckey_length)
     # We have gathered the relevant information for this account, except for
     # the policy which we don't let the user change at this point for the sake
     # of simplicity. So, let's store all of that in the account and prepare the



More information about the Nym3-commit mailing list