diff options
author | Niclas Eklund <[email protected]> | 2011-04-19 13:35:29 +0200 |
---|---|---|
committer | Niclas Eklund <[email protected]> | 2011-04-19 13:35:29 +0200 |
commit | afe36b58bb77012f94b19213ed9602c2eb9fd420 (patch) | |
tree | e372dab012bafe8a8cdc175343727194a746095b /lib/crypto/doc/src/crypto.xml | |
parent | c31065c750e37d5368398e9e2a741a1d4ec0588c (diff) | |
download | otp-afe36b58bb77012f94b19213ed9602c2eb9fd420.tar.gz otp-afe36b58bb77012f94b19213ed9602c2eb9fd420.tar.bz2 otp-afe36b58bb77012f94b19213ed9602c2eb9fd420.zip |
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.
Diffstat (limited to 'lib/crypto/doc/src/crypto.xml')
-rw-r--r-- | lib/crypto/doc/src/crypto.xml | 8 |
1 files changed, 6 insertions, 2 deletions
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 @@ <erlref> <header> <copyright> - <year>1999</year><year>2010</year> + <year>1999</year><year>2011</year> <holder>Ericsson AB. All Rights Reserved.</holder> </copyright> <legalnotice> @@ -625,6 +625,8 @@ Mpint() = <![CDATA[<<ByteLen:32/integer-big, Bytes:ByteLen/binary>>]]> result in a binary. Uses a cryptographically secure prng seeded and periodically mixed with operating system provided entropy. By default this is the <c>RAND_bytes</c> method from OpenSSL.</p> + <p>May throw exception <c>low_entropy</c> in case the random generator + failed due to lack of secure "randomness".</p> </desc> </func> <func> @@ -642,7 +644,7 @@ Mpint() = <![CDATA[<<ByteLen:32/integer-big, Bytes:ByteLen/binary>>]]> </desc> </func> <func> - <name>strong_rand_uniform(N, Top, Bottom) -> Mpint</name> + <name>strong_rand_mpint(N, Top, Bottom) -> Mpint</name> <fsummary>Generate an N bit random number</fsummary> <type> <v>N = non_neg_integer()</v> @@ -662,6 +664,8 @@ Mpint() = <![CDATA[<<ByteLen:32/integer-big, Bytes:ByteLen/binary>>]]> N bits long.</p> <p>If <c>Bottom</c> is 1, then the generated number is constrained to be odd.</p> + <p>May throw exception <c>low_entropy</c> in case the random generator + failed due to lack of secure "randomness".</p> </desc> </func> <func> |