surtur
88414b445d
All checks were successful
continuous-integration/drone/push Build is passing
of "c" and "ctr", the latter resembles "counter" sound more
20 lines
393 B
C++
20 lines
393 B
C++
#ifndef FORTUNA_GENERATOR_H
|
|
#define FORTUNA_GENERATOR_H
|
|
|
|
#include <string>
|
|
#include <cstring>
|
|
|
|
struct G_state;
|
|
|
|
/* initializes generator */
|
|
G_state *initialize_generator();
|
|
|
|
std::string do_crypto(long k, long ctr);
|
|
|
|
G_state generate_blocks(G_state G, int k_blocks);
|
|
|
|
/* returns output of 0 <= n <= 2^20 bytes */
|
|
std::string generate_random_data(G_state G, int n);
|
|
|
|
#endif//FORTUNA_GENERATOR_H
|