DrbgParameters.Capability (Java SE 9 & JDK 9 ) (original) (raw)


public static enum DrbgParameters.Capability
extends Enum<DrbgParameters.Capability>
The reseedable and prediction resistance capabilities of a DRBG.
When this object is passed to a SecureRandom.getInstance() call, it is the requested minimum capability. When it's returned fromSecureRandom.getParameters(), it is the effective capability.
Please note that while the Instantiate_function defined in NIST SP 800-90Ar1 only includes a prediction_resistance_flag parameter, the Capability type includes an extra valueRESEED_ONLY because reseeding is an optional function. If NONE is used in an Instantiation object in calling theSecureRandom.getInstance method, the returned DRBG instance is not guaranteed to support reseeding. If RESEED_ONLY orPR_AND_RESEED is used, the instance must support reseeding.
The table below lists possible effective values if a certain capability is requested, i.e.

Capability requested = ...;
SecureRandom s = SecureRandom.getInstance("DRBG",
DrbgParameters(-1, requested, null));
Capability effective = ((DrbgParametes.Initiate) s.getParameters())
.getCapability();
requested and effective capabilities

Requested Value Possible Effective Values
NONE NONE, RESEED_ONLY, PR_AND_RESEED
RESEED_ONLY RESEED_ONLY, PR_AND_RESEED
PR_AND_RESEED PR_AND_RESEED
A DRBG implementation supporting prediction resistance must also support reseeding.
Since:
9

Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.