ueno / ruby-gpgme

a ruby interface to GnuPG Made Easy (GPGME).
GNU Lesser General Public License v2.1
232 stars 99 forks source link

Enabling GCRYCTL_ENABLE_QUICK_RANDOM #143

Open goldstar611 opened 3 years ago

goldstar611 commented 3 years ago

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 commented 3 years ago

This would also simplify my specs greatly as well

goldstar611 commented 2 years ago

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