added Threefish cipher as submodule

This commit is contained in:
2022-08-22 14:24:31 +02:00
parent 4862a45ef6
commit d7aaa9647d
4 changed files with 45 additions and 3 deletions

View File

@ -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()