summaryrefslogtreecommitdiff
path: root/NOTES
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2010-10-15 21:19:02 -0700
committerDavid Barksdale <amatus.amongus@gmail.com>2010-10-15 21:19:02 -0700
commit1791fa62d12ad8407e9e9b9a0033ed47fe7a5c2d (patch)
treeda61456690d5b58ef8dc020358614b409cbbf10a /NOTES
parent581c86a89df3fe2167fb1001ec84ba2505e42d6f (diff)
More work on SET_KEY handling. Changed remote-peer state management a bit.
Better RNG security.
Diffstat (limited to 'NOTES')
-rw-r--r--NOTES5
1 files changed, 3 insertions, 2 deletions
diff --git a/NOTES b/NOTES
index 837329c..00d950b 100644
--- a/NOTES
+++ b/NOTES
@@ -1,6 +1,7 @@
(use '(org.gnu.clojure.gnunet core crypto hello hostlist inet iostream message parser peer tcp transport udp util))
-(def keypair (generate-rsa-keypair))
-(def my-peer (new-peer {:keypair keypair}))
+(def random (java.security.SecureRandom.))
+(def keypair (generate-rsa-keypair! random))
+(def my-peer (new-peer {:keypair keypair :random random}))
(.start (:selector-thread my-peer))
(activate-udp! my-peer 5678)
(configure-udp-addresses! my-peer (get-local-addresses) 5678)