a3daa722da
chore: print info msgs to stderr
continuous-integration/drone/push Build is passing
2022-02-03 00:37:20 +01:00
0e4d1aeef0
cmake: enable building with '-pedantic'
continuous-integration/drone/push Build is passing
2022-01-30 23:00:13 +01:00
80fcb13e8b
generator: use least-significant-byte-first ctr
continuous-integration/drone/push Build is passing
2022-01-30 22:56:08 +01:00
c6bf1c7f52
generator: use de_hex()
continuous-integration/drone/push Build is passing
2022-01-30 22:40:21 +01:00
fa9dc26f66
Util: add de_hex() fun
continuous-integration/drone/push Build is passing
2022-01-30 21:56:20 +01:00
dc1ab343eb
rename: set_gen() -> set_gen_ptr()
continuous-integration/drone/push Build is passing
2022-01-30 20:48:08 +01:00
01238c805a
generator: change exit(1) -> throw
continuous-integration/drone/push Build is passing
2022-01-30 00:00:20 +01:00
df4c9d7bdb
accumulator: add noexcept where reasonable
continuous-integration/drone/push Build is passing
2022-01-29 23:54:26 +01:00
74f8af7bfc
accumulator: rm unused pools_service()
continuous-integration/drone/push Build is passing
2022-01-27 23:59:56 +01:00
19ea0076a3
accumulator: rm unused accumulator_service()
continuous-integration/drone/push Build is passing
2022-01-27 23:59:38 +01:00
1a02256b2b
generator: add ctr_inc() fun
continuous-integration/drone/push Build is passing
2022-01-27 22:54:53 +01:00
715523eb1a
generator: add std::array<std::byte, 16> counter
continuous-integration/drone/push Build is passing
2022-01-27 22:48:58 +01:00
c9218e47e8
chore(main): rm unused var
continuous-integration/drone/push Build is passing
2022-01-27 21:22:50 +01:00
71f61085dd
cmake: change -mtune generic -> native
continuous-integration/drone/push Build is passing
2022-01-27 21:19:50 +01:00
ad6c01daaa
remove unused event_scheduler
continuous-integration/drone/push Build is passing
2022-01-27 20:46:27 +01:00
2b1349b256
cmake: add -fno-signed-zeros, -ffunction-sections
continuous-integration/drone/push Build is passing
2022-01-27 20:32:57 +01:00
d99ef986bf
cmake: add -Wvla in Debug builds
continuous-integration/drone/push Build is passing
2022-01-27 20:28:16 +01:00
a1beb2893d
generator: make sure not to return data unseeded
continuous-integration/drone/push Build is passing
2022-01-26 22:59:37 +01:00
8f0f29d190
generator: make some internal vars const
continuous-integration/drone/push Build is passing
2022-01-26 22:43:22 +01:00
c40806e68d
generator: create permanent Serpent encryption obj
continuous-integration/drone/push Build is passing
2022-01-26 22:35:45 +01:00
1517b150ed
cmake: CMAKE_BUILD_TYPE MATCHES -> STREQUAL
continuous-integration/drone/push Build is passing
2022-01-26 17:07:34 +01:00
c9398a0bf4
fix(sfm): use correct size in cast
continuous-integration/drone/push Build is passing
2022-01-24 19:25:04 +01:00
7d856dab8e
cmake: use clang-tidy with extra-arg '-std=c++20'
continuous-integration/drone/push Build is passing
2022-01-24 10:31:16 +01:00
a3251a7c8b
fix(pool): properly encode full event
continuous-integration/drone/push Build is passing
2022-01-24 03:55:19 +01:00
d401bb6c25
add chance namespace; handle signals
continuous-integration/drone/push Build is passing
2022-01-23 22:22:28 +01:00
710ee80f91
chore(pool): format
continuous-integration/drone/push Build is passing
2022-01-23 22:12:17 +01:00
a68166da57
fortuna: run svcs while(continue_running.load())
continuous-integration/drone/push Build is passing
2022-01-23 20:47:42 +01:00
5693b24ee0
fortuna: sleep only if sfm svc is running
continuous-integration/drone/push Build is passing
2022-01-23 20:45:06 +01:00
2c56d9af27
fortuna: std::atomic<bool> continue_running
continuous-integration/drone/push Build is passing
2022-01-23 20:39:11 +01:00
e706de7702
fortuna: use a once_flag in initialize_prng()
continuous-integration/drone/push Build is passing
2022-01-23 20:37:15 +01:00
01de51dc73
fortuna: assert i==Accumulator::init_pool_num==0
continuous-integration/drone/push Build is passing
2022-01-23 20:31:58 +01:00
f48927738d
sfm: assert checkup_interval < seed_write_interval
continuous-integration/drone/push Build is passing
2022-01-23 20:27:14 +01:00
8b9fbe1e1e
sfm: add get_write_interval() const member func.
continuous-integration/drone/push Build is passing
2022-01-23 20:18:59 +01:00
b8f76886eb
sfm: make write_interval const, as in unchanging
continuous-integration/drone/push Build is passing
2022-01-23 20:17:36 +01:00
fa4c9d048e
fortuna: use die_point latch
...
continuous-integration/drone/push Build is passing
wait on the latch in Fortuna's dtor until threads finish execution
2022-01-23 20:11:11 +01:00
680272bed4
fortuna: thread -> jthread; add die_point latch
continuous-integration/drone/push Build is passing
2022-01-23 20:07:49 +01:00
06deab6ef1
chore(fortuna): make sync_point latch private
continuous-integration/drone/push Build is passing
2022-01-23 20:00:30 +01:00
47e893b674
accumulator: rm commented std::move(&gen)
continuous-integration/drone/push Build is passing
2022-01-22 21:42:44 +01:00
3bf79b49fd
accumulator: make reg bool atomic
continuous-integration/drone/push Build is passing
2022-01-22 21:39:45 +01:00
9f95ebe3b1
pool: make all_ok atomic
continuous-integration/drone/push Build is passing
2022-01-22 21:33:49 +01:00
e452a63b4a
pool: add call_once to initialize_pool() mem. fun
...
continuous-integration/drone/push Build is passing
* also protect set_id() member function with a std::lock_guard, which
holds mtx for the time of initialization
2022-01-22 21:17:36 +01:00
14462e6b16
chore(pool): rm unimportant print statements
continuous-integration/drone/push Build is passing
2022-01-22 20:40:47 +01:00
4f5072d276
fortuna: add final specifier
continuous-integration/drone/push Build is passing
2022-01-22 20:18:46 +01:00
65abd3b2f3
chore: rm redundant da_pools, using shared_ptr
continuous-integration/drone/push Build is passing
2022-01-22 19:57:51 +01:00
580531acf2
chore: rm {accumulator,generator}_service, threads
continuous-integration/drone/push Build is passing
2022-01-22 19:27:58 +01:00
52de785399
fortuna: properly handle reseeds
...
continuous-integration/drone/push Build is passing
* move reseed_ctr and related member functions to Accumulator
* create a std::shared_ptr<Accumulator> to Fortuna's internal
Accumulator object and feed that into SeedFileManager instead of a
reference, which used to get copied to a new object in SeedFileManager
* make Accumulator non-copyable, since it's only to be created once.
instead, a shared_ptr is used to facilitate multiple-access
* handle concurrency in Accumulator as the reseed_ctr-related functions
can now be accessed from both Fortuna and SeedFileManager, declare mtx
as mutable (since it's also used in a const function)
* use std::scoped_lock in 'initialize_prng()' to safely lock both mutexes
2022-01-22 18:36:51 +01:00
760fd1bd9c
fortuna: std::unique_lock x2 -> std::scoped_lock
continuous-integration/drone/push Build is passing
2022-01-21 20:55:44 +01:00
4c77810535
chore(fortuna): lock print_mtx in {} scopes
continuous-integration/drone/push Build is passing
2022-01-21 20:44:24 +01:00
3db8100089
chore(fortuna): rm dbg l_ctr
continuous-integration/drone/push Build is passing
2022-01-21 19:51:54 +01:00
f6b06cd675
makefile: build in tmp when not in CI
continuous-integration/drone/push Build is passing
2022-01-21 19:14:55 +01:00