Home GnuPG

random: Get maximum 32B of entropy at once in FIPS Mode
ce0df08bbab7Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

random: Get maximum 32B of entropy at once in FIPS Mode

* random/rndgetentropy.c (_gcry_rndgetentropy_gather_random): In fips
mode, gather max 32 B of strong entropy for initialization.

Cherry-pick master commit of:
a6a6e94027abf18a51f5f93bf9fb2cfe5496bdf8

The limitation of our current kernel patch guarantees that only 32B of
strong random data can be gathered using getrandom().

  • Signed-off-by: Jakub Jelen <jjelen@redhat.com>

Details

Provenance
JakujeAuthored on Sep 26 2022, 6:45 PM
gniibeCommitted on Oct 4 2022, 7:51 AM
Parents
rC9ee2d56e806b: keccak: Use size_t to avoid integer overflow
Branches
Unknown
Tags
Unknown