surtur
c0efa75c1a
All checks were successful
continuous-integration/drone/push Build is passing
multiple changes combined in a single commit, I know... also, a move towards the use of OOP paradigm is imminent as we now have to do rewrites at multiple places in the code for any minor change
21 lines
469 B
C++
21 lines
469 B
C++
#ifndef FORTUNA_GENERATOR_H
|
|
#define FORTUNA_GENERATOR_H
|
|
|
|
#include <string>
|
|
#include <cstring>
|
|
#include <tuple>
|
|
|
|
struct G_state;
|
|
|
|
/* initializes generator */
|
|
G_state *initialize_generator();
|
|
|
|
std::string do_crypto(long k, unsigned __int128 ctr);
|
|
|
|
std::tuple<std::string, G_state> generate_blocks(G_state G, int k_blocks);
|
|
|
|
/* returns output of 0 <= n <= 2^20 bytes */
|
|
std::tuple<std::string, G_state> generate_random_data(G_state G, int n);
|
|
|
|
#endif//FORTUNA_GENERATOR_H
|