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

Enabling GCRYCTL_ENABLE_QUICK_RANDOM #143

Open
goldstar611 opened this issue Aug 2, 2021 · 2 comments
Open

Enabling GCRYCTL_ENABLE_QUICK_RANDOM #143

goldstar611 opened this issue Aug 2, 2021 · 2 comments

Comments

@goldstar611
Copy link

goldstar611 commented Aug 2, 2021

Hi, gpg's binary has a optional switch --debug-quick-random which will use non-blocking random sources and is nice to use for tests/CI.

How do I toggle with switch with GPGME? I searched the source here for several keywords such as "random" and "quick" and did not find it.

A brief cross reference to the GPG source at https://github.com/gpg/gnupg/blob/98c52aeb31f4bf2604727aacad982fb51c04063f/g10/gpg.c#L2908 shows me that for a low level API call I'd need to call a function like gcry_control or do something with a constant named GCRYCTL_ENABLE_QUICK_RANDOM but I did not find anything like these defined in any rb files here.

Thanks!

@kernelsmith
Copy link

This would also simplify my specs greatly as well

@goldstar611
Copy link
Author

This request may soon be moot: https://lwn.net/Articles/884875/

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

No branches or pull requests

2 participants