Bug 1265916 - pgp: key generation taking long time
pgp: key generation taking long time
Product: Fedora
Classification: Fedora
Component: pgp-tools (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jochen Schmitt
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-09-24 03:24 EDT by Richard Jasmin
Modified: 2016-07-19 14:00 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-07-19 14:00:17 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Richard Jasmin 2015-09-24 03:24:34 EDT
Description of problem:
even with entropy around 3192 or higher, key generation(command line seems to be the only way to get it to take for some reason) takes a loooooong time to accomplish.I have haveged and audio entropy daemons running also.Mic is attached to the system.I have TPM chip installed and enabled and owned.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.make a new keypair(size does not matter)
gpg --gen-key

Actual results:
ok, keypair but it took like five minutes or more.

Expected results:
instant would be nice.near-instant would be better.

maybe we are pulling from /dev/random instead of /dev/urandom. on systems with entropy /dev/urandom is sufficient enough to produce strong hash and the like.The process does seem to block so I think it uses /dev/random.

A lot of people are old school in this regards, especially with encryption but if you do your homework you will see the difference between the two is rather moot.It only causes a problem on systems with little(<150) to no entropy.Fedora is not infected like other linux-es are in this regards and always has high entropy.


there is a way to seed /dev/random from /dev/urandom but I dont see where this config file should be.It is with the prng tools like trouser,I have the file but nowhere to put it.Check my linux-wide security bug for more info.
Comment 1 Fedora End Of Life 2016-07-19 14:00:17 EDT
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.