Skip to content
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

common: ask gcrypt to use the system RNG as source of entropy #339

Merged
merged 1 commit into from
Jan 29, 2024
Merged

common: ask gcrypt to use the system RNG as source of entropy #339

merged 1 commit into from
Jan 29, 2024

Conversation

crrodriguez
Copy link
Contributor

By default gcrypt uses an userspace RNG, that simply cannot have all the information it needs to be correct on suspend/resume and other special cases, the kernel does not expose this information to userspace.
Switch to GCRY_RNG_TYPE_SYSTEM, that simple wraps getrandom() on linux.

call to gcry_control must be issued before gcry_check_version.

By default gcrypt uses an userspace RNG, that simply cannot have
all the information it needs to be correct on suspend/resume
and other special cases, the kernel does not expose this information
to userspace.
Switch to GCRY_RNG_TYPE_SYSTEM, that simple wraps getrandom()
on linux.

call to gcry_control must be issued before gcry_check_version.
@paolostivanin
Copy link
Owner

thanks!

@paolostivanin paolostivanin merged commit 22a1286 into paolostivanin:master Jan 29, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants