surtur
4d0785b002
generator::R_state: make ctor,dtor noexcept
2022-01-13 01:51:33 +01:00
surtur
643e7aabf6
fortuna: add basic joinability check
2022-01-12 03:41:24 +01:00
surtur
767da88531
accumulator: check entropy sources before adding
2022-01-11 05:38:02 +01:00
surtur
1181518a77
fmtlog: bump (manually) to v2.1.1
2022-01-11 04:47:34 +01:00
surtur
a7cd73a3fc
add .editorconfig [skip ci]
2022-01-10 08:55:07 +01:00
surtur
3553968d52
fortuna: add accumulator service,thread
2022-01-10 07:57:11 +01:00
surtur
1817b4a82e
fortuna: add print mutex, impl with unique_lock
...
* used for orderly printing to screen, currently only used by the two of
the services: generator_service and seed_file_manager_service
* lock the mutex in a unique_lock only when printing to screen, unlock
it immediately after printing is done
* use proper chrono type for sleep_time (instead of uint)
* also, generator_service is no longer a static method
2022-01-10 07:43:55 +01:00
surtur
ebb1e46e1c
accumulator: move logic to source file
2022-01-10 06:23:26 +01:00
surtur
ebcc4f87d5
pool: move logic to the source file
2022-01-10 05:07:18 +01:00
surtur
4b216a6f6e
refactor: clang-format
2022-01-10 04:25:03 +01:00
surtur
391e2973e8
chore: update .clang-format [skip ci]
2022-01-10 01:56:37 +01:00
surtur
67c2462c3a
fix: -Wtype-limits x2
2022-01-09 12:31:16 +01:00
surtur
795b9ffe54
add proper SeedFileManager implementation
...
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
8827582f90
generator: rm using directives,use CryptoPP prefix
2022-01-08 07:30:31 +01:00
surtur
e7cce999a0
ci: fix git submodule update --init race condition
2022-01-14 04:41:43 +01:00
surtur
02de37baa2
ci: rm 'build on alpine' step
...
building on alpine when using libc++ would probably be too much of a
hassle right now.
2022-01-10 05:02:44 +01:00
surtur
f5563397ee
generator wip: add time_to_reseed() member function
2022-01-08 07:24:04 +01:00
surtur
ef418cf89c
fmt::fmt: header-only -> statically linked lib
2022-01-13 05:50:56 +01:00
surtur
701774eab0
chore(generator): rm ; after function definition
2022-01-08 07:22:38 +01:00
surtur
ee0fb01dc8
generator: use G.k_length var instead of .size()
2022-01-08 07:16:19 +01:00
surtur
b3c1033e6a
generator: resize dst string to needed size
2022-01-08 07:12:42 +01:00
surtur
3d22b8de8b
generator: fix memmove UB warnings
2022-01-08 07:06:31 +01:00
surtur
408d783c37
chore(generator): comments clean-up
2022-01-08 06:34:30 +01:00
surtur
592d3aac47
generator: get rid of AutoSeededRandomPool et al.
2022-01-08 06:01:10 +01:00
surtur
2376918791
makefile(clean tgt): follow symlinks (build dir)
2022-01-07 21:04:54 +01:00
surtur
04e088c07f
cmake: reindent;add vim modeline
2022-01-07 17:45:05 +01:00
surtur
5ad8e610a4
cmake: integrate iwyu, if/when present
2022-01-07 06:20:26 +01:00
surtur
51c0b1fc56
generator: rm misplaced G.k wipe
2022-01-07 05:51:25 +01:00
surtur
d4c7c61ac4
cmake,makefile: think of clang++, too
2022-01-07 05:14:56 +01:00
surtur
c93a524ca6
makefile: rm unnecessary '&& \'
2022-01-07 04:07:51 +01:00
surtur
b37180cf73
gitignore: add .cache [skip ci]
2022-01-07 03:46:52 +01:00
surtur
19d5ff0f22
cmake,makefile: SAN,TIDY,VALGRIND opts;clean turbo
2022-01-07 03:42:42 +01:00
surtur
cf340a200a
pre-commit: add check-yaml,edit cppcheck hook
2022-01-06 22:12:50 +01:00
surtur
1cba4dea10
generator: make get_state() const
2022-01-06 16:47:46 +01:00
surtur
6e62e47d7b
chore(fortuna): std::mutex -> std::unique_lock
2022-01-06 00:50:28 +01:00
surtur
a3009709cf
chore(accumulator): reorder includes
2022-01-06 00:30:46 +01:00
surtur
3d65cde727
fortuna: properly reindent file
2022-01-04 06:57:36 +01:00
surtur
06db22bfa4
fortuna: add seed_file_manager_service() [wip]
2022-01-04 06:44:30 +01:00
surtur
cc26b654d4
generator: add time_to_reseed() prototype
2022-01-04 06:41:12 +01:00
surtur
554030bbaa
cmake: a little refactor
2022-01-04 05:33:14 +01:00
surtur
c6695f4be3
generator service: refactor var names,types
2022-01-03 08:53:54 +01:00
surtur
3e4fb10414
fortuna: add generator service
2022-01-03 07:49:53 +01:00
surtur
158545f401
generator: rm bogus reseed+add lock guards
2022-01-03 06:29:16 +01:00
surtur
9e6efc9d38
generator: get rid of an intermediary var
2022-01-03 05:17:29 +01:00
surtur
f250543231
ci: use 'make san', rm valgrind steps
...
* sanitize instead of memcheck with valgrind
* rename debug and release steps to follow similar pattern as 'make san'
2022-01-03 04:22:30 +01:00
surtur
69cc71c749
pool: no copy constructor
2022-01-03 02:49:23 +01:00
surtur
f831c16bce
generator: no copies
2022-01-03 01:02:53 +01:00
surtur
42a73a00af
style(generator)
2022-01-03 01:02:05 +01:00
surtur
6d3059f39a
pool: make ctor,dtor noexcept
2022-01-02 08:05:37 +01:00
surtur
78fc8ee9c0
urandom_entropy_src: add service method prototype
2022-01-02 07:46:28 +01:00