summaryrefslogtreecommitdiff
path: root/build.conf
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2018-06-11 22:06:09 +0000
committerYann Ylavic <ylavic@apache.org>2018-06-11 22:06:09 +0000
commit214bee3ec4c25be010a0b94091da61de005c604c (patch)
treeed79099e853bca1344dfd7a8bd18a6d47b2a6e42 /build.conf
parentecbddf2ead64b58a9c17136113eb0b91cd858a59 (diff)
downloadapr-214bee3ec4c25be010a0b94091da61de005c604c.tar.gz
Cryptographic Pseudo Random Number Generator (CPRNG).
New apr_crypto_prng API and apr_crypto[_thread]_random_bytes() functions. Allows to generate cryptographically secure random bytes indefinitely given an initial seed of APR_CRYPTO_PRNG_SEED_SIZE bytes (32), which is either provided by the caller or automatically gathered from the system. The CPRNG can also be re-seeded at any time, or after a process is fork()ed. The internal key is renewed every APR_CRYPTO_PRNG_SEED_SIZE random bytes produced and those data once returned to the caller are cleared from the internal state, which ensures forward secrecy. This CPRNG is fast, based on a stream cipher, and will never block besides the initial seed or any reseed if it depends on the system entropy. Finally, it can be used either globally (locked in multithread environment), per-thread (a lock free instance is automatically created for each thread on first use), or created as standalone instance (manageable independently). For now it's only implemented with the OpenSSL library as underlying crypto, that is --with-crypto --with-openssl needs to be configured, and the latter links libcrypto with APR. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1833359 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.conf')
-rw-r--r--build.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/build.conf b/build.conf
index d01fd1dc6..1dfc3b4ed 100644
--- a/build.conf
+++ b/build.conf
@@ -11,6 +11,7 @@ paths =
tables/*.c
buckets/*.c
crypto/apr_crypto.c
+ crypto/apr_crypto_prng.c
crypto/apr_md4.c
crypto/apr_md5.c
crypto/apr_passwd.c