diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2010-10-15 21:19:02 -0700 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2010-10-15 21:19:02 -0700 |
commit | 1791fa62d12ad8407e9e9b9a0033ed47fe7a5c2d (patch) | |
tree | da61456690d5b58ef8dc020358614b409cbbf10a /NOTES | |
parent | 581c86a89df3fe2167fb1001ec84ba2505e42d6f (diff) |
More work on SET_KEY handling. Changed remote-peer state management a bit.
Better RNG security.
Diffstat (limited to 'NOTES')
-rw-r--r-- | NOTES | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |