System : Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software : Apache. PHP/5.3.6-13ubuntu3.10
ID : uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode : OFF
Open_Basedir : OFF
Freespace : 24.54 GB of 70.42 GB (34.85%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
/
usr/
share/
doc/
libapr1-dev/
html/
- drwxr-xr-x
Viewing file: group__apr__random.html (26.54 KB) -rw-r--r-- Select action/file-type:
(
+ ) |
(
+ ) |
(
+ ) |
Code (
+ ) |
Session (
+ ) |
(
+ ) |
SDB (
+ ) |
(
+ ) |
(
+ ) |
(
+ ) |
(
+ ) |
(
+ ) |
Apache Portable Runtime: Random Functions
Data Structures
struct apr_crypto_hash_t
Typedefs
typedef struct apr_crypto_hash_t apr_crypto_hash_t
typedef void apr_crypto_hash_init_t (apr_crypto_hash_t *hash)
typedef void apr_crypto_hash_add_t (apr_crypto_hash_t *hash, const void *data, apr_size_t bytes)
typedef void apr_crypto_hash_finish_t (apr_crypto_hash_t *hash, unsigned char *result)
typedef struct apr_random_t apr_random_t
Functions
apr_status_t apr_generate_random_bytes (unsigned char *buf, apr_size_t length)
apr_crypto_hash_t * apr_crypto_sha256_new (apr_pool_t *p)
void apr_random_init (apr_random_t *g, apr_pool_t *p, apr_crypto_hash_t *pool_hash, apr_crypto_hash_t *key_hash, apr_crypto_hash_t *prng_hash)
apr_random_t * apr_random_standard_new (apr_pool_t *p)
void apr_random_add_entropy (apr_random_t *g, const void *entropy_, apr_size_t bytes)
apr_status_t apr_random_insecure_bytes (apr_random_t *g, void *random, apr_size_t bytes)
apr_status_t apr_random_secure_bytes (apr_random_t *g, void *random, apr_size_t bytes)
void apr_random_barrier (apr_random_t *g)
apr_status_t apr_random_secure_ready (apr_random_t *r)
apr_status_t apr_random_insecure_ready (apr_random_t *r)
void apr_random_after_fork (apr_proc_t *proc)
Typedef Documentation
Function Documentation
Allocate and initialize the SHA-256 context
Parameters:
p The pool to allocate from
apr_status_t apr_generate_random_bytes
(
unsigned char *
buf ,
apr_size_t
length
)
Generate random bytes.
Parameters:
buf Buffer to fill with random bytes
length Length of buffer in bytes
void apr_random_add_entropy
(
apr_random_t *
g ,
const void *
entropy_ ,
apr_size_t
bytes
)
Mix the randomness pools.
Parameters:
g The PRNG state
entropy_ Entropy buffer
bytes Length of entropy_ in bytes
Mix the randomness pools after forking.
Parameters:
proc The resulting process handle from apr_proc_fork()
Ensures that E bits of conditional entropy are mixed into the PRNG before any further randomness is extracted.
Parameters:
Initialize a PRNG state
Parameters:
g The PRNG state
p The pool to allocate from
pool_hash Pool hash functions
key_hash Key hash functions
prng_hash PRNG hash functions
Generate cryptographically insecure random bytes.
Parameters:
g The RNG state
random Buffer to fill with random bytes
bytes Length of buffer in bytes
Return APR_SUCCESS if the PRNG has been seeded with enough data, APR_ENOTENOUGHENTROPY otherwise.
Parameters:
Generate cryptographically secure random bytes.
Parameters:
g The RNG state
random Buffer to fill with random bytes
bytes Length of buffer in bytes
Return APR_SUCCESS if the cryptographic PRNG has been seeded with enough data, APR_ENOTENOUGHENTROPY otherwise.
Parameters:
Allocate and initialize (apr_crypto_sha256_new) a new PRNG state.
Parameters:
p The pool to allocate from