generator wip: add time_to_reseed() member function
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-08 07:24:04 +01:00
parent ef418cf89c
commit f5563397ee
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -43,6 +43,15 @@ auto Generator::get_state() const -> G_state {
return G;
}
auto Generator::time_to_reseed() const -> bool {
// TODO(me): implement this
if (true) {
return true;
} else {
return false;
}
}
auto Generator::reseed(const std::string& s) -> void {
// ref: https://www.cryptopp.com/wiki/SecBlock
std::string da_key(reinterpret_cast<const char*>(&G.k[0]),