Commit Graph

8 Commits

Author SHA1 Message Date
surtur fa9dc26f66
Util: add de_hex() fun
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-30 21:56:20 +01:00
surtur 2872c44d8e
Util: add do_sha() for {const,} std::vector<char>&
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-17 04:52:55 +01:00
surtur 5d6b9b9b28
Util: apply latest clang-format
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-14 08:07:26 +01:00
surtur 4b216a6f6e
refactor: clang-format
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-10 04:25:03 +01:00
surtur 795b9ffe54
add proper SeedFileManager implementation
All checks were successful
continuous-integration/drone/push Build is passing
a couple of fixes/necessary additions were made along the way, namely:
* add a default constructor for DoTask
* rework of the mutex/lock_guard/unique_lock logic in generator/fortuna
* add .fortuna.seed to the list of the ignored (.gitignore)
* add helper function to util for convertin bytes to blocks (16b==block)
* add a wrapper for around the SeedFileManager instance and a way to see
  if it's dead or alive (so that it can be restarted if needed)
* the timeout for saving of the seed file has been decreased to a more
  reasonable value than 10 minutes (I wouldn't want to lose potentially
  up to 10 minutes worth of entropy)
2022-01-09 11:58:38 +01:00
surtur 16da8fb3cf
util: add current_time()
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-01 09:07:28 +01:00
surtur 934c658fde
util: add gen_block_size field
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-01 08:19:50 +01:00
surtur 65c476dbd6
add Util class + perform general refactor
All checks were successful
continuous-integration/drone/push Build is passing
* rm duplicate do_sha() code, consolidate in Util
* make reseed() public so that it can be called from outside
* rm reseed() from do_crypto() where it has no place
2021-12-13 05:10:07 +01:00