-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let the entropy module be optional #4525
base: master
Are you sure you want to change the base?
Conversation
230fbbd
to
7c0d596
Compare
7c0d596
to
ccc4b27
Compare
src/lib/rng/auto_rng/auto_rng.cpp
Outdated
class Entropy_Sources; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This relates to lines 68 to 72 where Entropy_Sources
is actually used if Botan doesn't have the system rng enabled. Probably, this needs another ifdef.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't even required at all - removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you push all changes here? If I configure without entropy
and system_rng
botan fails to build with:
src/lib/rng/auto_rng/auto_rng.cpp:68:22: error: incomplete type 'Botan::Entropy_Sources' named in nested name specifier
68 | AutoSeeded_RNG(Entropy_Sources::global_sources(), reseed_interval)
| ^~~~~~~~~~~~~~~~~
build/include/public/botan/rng.h:26:7: note: forward declaration of 'Botan::Entropy_Sources'
26 | class Entropy_Sources;
| ^
ccc4b27
to
aa9b79b
Compare
It was previously required by the rng module, but this isn't really necessary, especially for anyone who is just using the system RNG. (And/or NIST DRBGs seeded with the system RNG.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See previous comment about auto_rng.cpp
It was previously required by the rng module, but this isn't really necessary, especially for anyone who is just using the system RNG. (And/or NIST DRBGs seeded with the system RNG.)