From afe36b58bb77012f94b19213ed9602c2eb9fd420 Mon Sep 17 00:00:00 2001
From: Niclas Eklund
Date: Tue, 19 Apr 2011 13:35:29 +0200
Subject: Renamed the function strong_rand_uniform to strong_rand_mpint. Added
some checks in crypto.erl and crypto.c. Changed ssh_bits to use
strong_rand_mpint.
---
lib/crypto/doc/src/crypto.xml | 8 ++++++--
lib/crypto/doc/src/notes.xml | 17 ++++++++++++++++-
2 files changed, 22 insertions(+), 3 deletions(-)
(limited to 'lib/crypto/doc/src')
diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml
index 087e9ac00c..dd40378f29 100644
--- a/lib/crypto/doc/src/crypto.xml
+++ b/lib/crypto/doc/src/crypto.xml
@@ -4,7 +4,7 @@
- 19992010
+ 19992011
Ericsson AB. All Rights Reserved.
@@ -625,6 +625,8 @@ Mpint() = >]]>
result in a binary. Uses a cryptographically secure prng seeded and
periodically mixed with operating system provided entropy. By default
this is the RAND_bytes method from OpenSSL.
+ May throw exception low_entropy in case the random generator
+ failed due to lack of secure "randomness".
@@ -642,7 +644,7 @@ Mpint() = >]]>
- strong_rand_uniform(N, Top, Bottom) -> Mpint
+ strong_rand_mpint(N, Top, Bottom) -> Mpint
Generate an N bit random number
N = non_neg_integer()
@@ -662,6 +664,8 @@ Mpint() = >]]>
N bits long.
If Bottom is 1, then the generated number is
constrained to be odd.
+ May throw exception low_entropy in case the random generator
+ failed due to lack of secure "randomness".
diff --git a/lib/crypto/doc/src/notes.xml b/lib/crypto/doc/src/notes.xml
index 5e9bda3920..ab1ffa9e5c 100644
--- a/lib/crypto/doc/src/notes.xml
+++ b/lib/crypto/doc/src/notes.xml
@@ -4,7 +4,7 @@
- 19992010
+ 19992011
Ericsson AB. All Rights Reserved.
@@ -30,6 +30,21 @@
This document describes the changes made to the Crypto application.
+Crypto 2.0.2.2
+
+ Improvements and New Features
+
+ -
+
+ Strengthened random number generation. (Thanks to Geoff Cant)
+
+ Own Id: OTP-9225
+
+
+
+
+
+
Crypto 2.0.2.1
Improvements and New Features
--
cgit v1.2.3