diff options
author | wukong <rebirthmonkey@gmail.com> | 2015-11-23 17:48:48 +0100 |
---|---|---|
committer | wukong <rebirthmonkey@gmail.com> | 2015-11-23 17:48:48 +0100 |
commit | fca74d4bc3569506a6659880a89aa009dc11f552 (patch) | |
tree | 4cefd06af989608ea8ebd3bc6306889e2a1ad175 /moon-abe/pbc-0.5.14/doc/miscfns.txt | |
parent | 840ac3ebca7af381132bf7e93c1e4c0430d6b16a (diff) |
moon-abe cleanup
Change-Id: Ie1259856db03f0b9e80de3e967ec6bd1f03191b3
Diffstat (limited to 'moon-abe/pbc-0.5.14/doc/miscfns.txt')
-rw-r--r-- | moon-abe/pbc-0.5.14/doc/miscfns.txt | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/moon-abe/pbc-0.5.14/doc/miscfns.txt b/moon-abe/pbc-0.5.14/doc/miscfns.txt deleted file mode 100644 index 5ea07a67..00000000 --- a/moon-abe/pbc-0.5.14/doc/miscfns.txt +++ /dev/null @@ -1,43 +0,0 @@ -== Other functions == - -Random number generation, memory allocation, logging. - -[[randomref]] -=== Random bits === - -The first time PBC is asked to generate a random number, -the library will try to open the file `/dev/urandom` as a -source of random bits. If this fails, PBC falls back to a deterministic -random number generator (which is of course completely useless for -cryptography). - -It is possible to change the file used for random bits. Also, explicitly -selecting the deterministic random number generator will -suppress the warning. - -On Windows, by default, PBC uses the Microsoft Crypto API to generate random -bits. - -include::gen/pbcrandom.txt[] - -=== Custom allocation === - -Like GMP, PBC can be instructed to use custom memory allocation functions. -This must be done before any memory allocation is performed, -usually at the beginning of a program before any other PBC functions have -been called. - -Also like GMP, the PBC wrappers around +malloc+ -and +realloc+ will print a message on standard error -and terminate program execution if the calls fail. -Replacements for these functions should act similarly. - -However, unlike GMP, PBC does not pass the number of bytes previously allocated -along with the pointer in calls to +realloc+ and -+free+. - -include::gen/alloc.txt[] - -=== Logging === - -include::gen/log.txt[] |