diff options
author | Ng Pheng Siong <ngps@netmemetic.com> | 2000-04-17 16:16:44 +0000 |
---|---|---|
committer | Ng Pheng Siong <ngps@netmemetic.com> | 2000-04-17 16:16:44 +0000 |
commit | ad5516dfdebc69eca5d48d8add197bf1ad2324d4 (patch) | |
tree | 1c12e9a93546c39eff26210582c0c42563b164d3 /M2Crypto/Rand.py | |
parent | 5fae622b3e57f5376d76a6820f3aaa8c50cce5d5 (diff) | |
download | m2crypto-ad5516dfdebc69eca5d48d8add197bf1ad2324d4.tar.gz |
OpenSSL 0.9.5 compatible.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@57 2715db39-9adf-0310-9c64-84f055769b4b
Diffstat (limited to 'M2Crypto/Rand.py')
-rw-r--r-- | M2Crypto/Rand.py | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/M2Crypto/Rand.py b/M2Crypto/Rand.py index 9696e84..a8bd9aa 100644 --- a/M2Crypto/Rand.py +++ b/M2Crypto/Rand.py @@ -1,6 +1,20 @@ -#!/usr/bin/env python +"""M2Crypto wrapper for OpenSSL PRNG. Requires OpenSSL 0.9.5 and above. -RCS_id='$Id: Rand.py,v 1.1 1999/08/16 15:32:52 ngps Exp $' +Copyright (c) 1999-2000 Ng Pheng Siong. All rights reserved.""" + +RCS_id='$Id: Rand.py,v 1.2 2000/04/17 16:16:44 ngps Exp $' + +import M2Crypto +m2 = M2Crypto + +rand_seed = m2.rand_seed +rand_add = m2.rand_add +load_file = m2.rand_load_file +save_file = m2.rand_save_file +rand_bytes = m2.rand_bytes +rand_pseudo_bytes = m2.rand_pseudo_bytes + +def estimate_entropy(buf): + pass -from M2Crypto import rand_bytes, rand_cleanup |