Home GnuPG

Add API for generating random bytes and single random values

Description

Add API for generating random bytes and single random values

* src/randomresults.h: New.
* src/CMakeLists.txt: Add new file.
* src/context.h (class Context): Add enum RandomMode.
* src/context.h, src/context.cpp (class Context): Add member
functions generateRandomBytes and generateRandomValue.
* tests/run-genrandom.cpp: New.
* tests/CMakeLists.txt: Add new file.

This adds C++ API for the new gpgme functions gpgme_op_random_bytes
and gpgme_op_random_value.

Details

Provenance
ikloeckerAuthored on Mon, Mar 24, 3:29 PM
Parents
rGPGMEPP4dba4ecbac7b: Bump soversion to 7
Branches
Unknown
Tags
Unknown
Tasks
T6694: Random numbers from gpgme