summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authormoraes <moraes@rivest.dlitz.net>2002-10-31 18:34:22 -0700
committermoraes <moraes@rivest.dlitz.net>2002-10-31 18:34:22 -0700
commit5fc3c038950f5e0ac73a814cd76ce0a50c654bc3 (patch)
treefc63f99812668e67e060bd459dd87b29d43b682c /ChangeLog
parenta317dcc290cd7eab22cb23e83e5e88fc33a40fc7 (diff)
downloadpycrypto-5fc3c038950f5e0ac73a814cd76ce0a50c654bc3.tar.gz
[project @ moraes-20021101013422-4183169bb5ae0427]
[project @ 2002-10-31 17:34:22 by moraes] Move the /dev/urandom read into a _randomize function in RandomPool. Added randomize function which calls _randomize (randomize gets overloaded by Keyboard), but user can now call randomize on any RandomPool derived class to get more entropy from whatever source the class uses. randomize(N) tries to get N bytes of entropy from the source (if N is 0, randomize will 'fill up' the pool's entropy to the number of bits in the pool) Added src/winrand.c for Crypto.Util.winrandom and now use winrandom for _randomize if possible. Stir the pool after a randomize, just to reduce predictability further. add_event now returns the number of estimated bits of added entropy, rather than the pool entropy itself (since the pool entropy is capped at the number of bits in the pool) Modify stir() to take optional string which is added to the hash input. Added stir_n() to stir several times and use that instead of multiple calls to stir. Stir persistent data from file into pool rather than just using addBytes, provides some future secrecy. Stir the pool before and after a save, so that someone who can read the pool cannot easily guess the seed. Moved termios code from KeyboardRandomPool into a KeyboardEntry class, provided a version for Windows using msvcrt. Extended main() to test some of the other classes (Keyboard, Persistent) Noticed a few lines indented with TABs rather than spaces (as was the rest of the file), so I made those consistent. Updated ChangeLog.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog23
1 files changed, 23 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 84f890c..883dc56 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,27 @@
+ Many randpool changes. RandomPool now has a
+ randomize(N:int) method that can be called to get N
+ bytes of entropy for the pool (N defaults to 0,
+ which 'fills up' the pool's entropy) KeyboardRandom
+ overloads this method.
+
+ Added src/winrand.c for Crypto.Util.winrandom and
+ now use winrandom for _randomize if possible.
+ (Calls Windows CryptoAPI CryptGenRandom)
+
+ Several additional places for stirring the pool,
+ capturing inter-event entropy when reading/writing,
+ stirring before and after saves.
+
+ RandomPool.add_event now returns the number of
+ estimated bits of added entropy, rather than the
+ pool entropy itself (since the pool entropy is
+ capped at the number of bits in the pool)
+
+ Moved termios code from KeyboardRandomPool into a
+ KeyboardEntry class, provided a version for Windows
+ using msvcrt.
+
1.9alpha5
=========