Skip to content

Enabling GCRYCTL_ENABLE_QUICK_RANDOM #143

Description

@goldstar611

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions