pki-bot / pki-issues-final

0 stars 0 forks source link

Investigating PK11SecureRandom seeding #2247

Open pki-bot opened 3 years ago

pki-bot commented 3 years ago

This issue was migrated from Pagure Issue #2698. Originally filed by edewata (@edewata) on 2017-05-19 14:17:05:


The following code in JssSubsystem seeds a PK11SecureRandom object with random bytes obtained from /dev/urandom (see https://github.com/dogtagpki/pki/blob/master/base/server/cmscore/src/com/netscape/cmscore/security/JssSubsystem.java#L258):

byte[] b = ... random bytes from /dev/urandom ...

PK11SecureRandom sr = new PK11SecureRandom();
sr.setSeed(b);

This code is only used in KRA. Further investigation is needed to determine the purpose of this code. If it turns out to be unnecessary the code should be removed.

pki-bot commented 3 years ago

Comment from edewata (@edewata) at 2017-05-19 14:17:50

Metadata Update from @edewata:

pki-bot commented 3 years ago

Comment from edewata (@edewata) at 2017-05-19 15:11:07

See also https://bugzilla.mozilla.org/show_bug.cgi?id=1254334#c22.