Home GnuPG

Avoid copy of generated random bytes

Description

Avoid copy of generated random bytes

* src/randomresults.h (class RandomBytesResult): Add constructor for
moving value into result.
* src/context.cpp (Context::generateRandomBytes): Use new constructor.

Details

Provenance
ikloeckerAuthored on Wed, Feb 18, 9:02 AM
Parents
rGPGMEPPfade4bbe630b: tests: Fix conversion of random zbase32 data to string
Branches
Unknown
Tags
Unknown
Tasks
T8108: gpgmepp: Improve the getrandom API