added Threefish cipher as submodule
This commit is contained in:
@ -7,10 +7,32 @@
|
||||
|
||||
#include "../include/reHDD.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#include "../tfnoisegen/tfprng.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
const static char *randomsrc = (char*) "/dev/urandom";
|
||||
|
||||
|
||||
#define DATASIZE 65536
|
||||
|
||||
|
||||
|
||||
Shred::Shred()
|
||||
{
|
||||
|
||||
static char data[DATASIZE];
|
||||
static char key[TFNG_KEY_SIZE];
|
||||
tfng_prng_seedkey(key);
|
||||
|
||||
tfng_prng_genrandom(data, DATASIZE);
|
||||
|
||||
Logger::logThis()->info("RandomData: " + to_string(data[0]));
|
||||
|
||||
}
|
||||
|
||||
Shred::~Shred()
|
||||
|
Reference in New Issue
Block a user