Rename functions and definitions so that both tfcipher and tfnoisegen code may coexist in programs.

This commit is contained in:
Andrey Rys
2019-03-21 16:47:59 +07:00
parent 2aa15abd13
commit c8e1be6e60
10 changed files with 127 additions and 121 deletions

8
README
View File

@ -25,10 +25,16 @@ USAGE
./tfrand | tfcrypt -V.5 -P - /dev/null
Use libtf.a library in your code, see headers for function references:
Use libtfng.a library in your code, see headers for function references:
tfe.h: STREAM reference.
tfprng.h: PRNG reference.
When building together with code which uses tfcipher library, please put
both tfcipher and tfnoisegen code in separate locations, and do not include
headers which are used privately by both implementations! Only public headers
and libtfng.a library externals are guaranteed to be namespace clean.
File names and private headers definitions are mostly same.
WARNING
Do NOT use it as cipher! It's just a random block generator.
You have been warned.