Difference between revisions of "Random Number Generator"

From Dogtag
Jump to: navigation, search
m (Session ID Generator)
m (Overview)
Line 1: Line 1:
 
= Overview =
 
= Overview =
  
SecureRandom is a generic Java API to access random number generator functionality.
+
See [https://github.com/dogtagpki/jss/wiki/JSS-SecureRandom JSS SecureRandom].
 
 
SecureRandom random = new SecureRandom();
 
 
 
By default SecureRandom will use NativePRNG implementation which uses /dev/urandom for nextBytes() and /dev/random to generateSeed().
 
 
 
The API can be used to access other random number generators using the following interface:
 
 
 
SecureRandom random = SecureRandom.getInstance(algorithm, provider);
 
 
 
SHA1PRNG is a pure Java random number generator. It is not as strong as the algorithms used by approved DRBG mechanisms in NIST SP800-90.
 
 
 
There is a new version of SecureRandom coming in Java 9, [http://openjdk.java.net/jeps/273 JEP-273], which adds SHA-512 and AES-256 based off NIST SP800-90.
 
 
 
JSS provides a FIPS 140-2 compliant random number generator called PK11SecureRandom which can also be used via this API.
 
  
 
= JSS Subsystem =
 
= JSS Subsystem =

Revision as of 16:27, 29 July 2022

Overview

See JSS SecureRandom.

JSS Subsystem

See Configuring Random Generator.

Session ID Generator

See Configuring Session ID Generator.

See Also