Package org.bouncycastle.crypto.fips
Class FipsEntropyConfig
java.lang.Object
org.bouncycastle.crypto.fips.FipsEntropyConfig
Entropy constants for SP 800-90B. Can be set using "org.bouncycastle.entropy.factors"
which takes 3 numbers in the format of "<int>,<int>,<float>" being
the values for Stuck C, Adaptive C, and H.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
Return the C value for the SP 800-90B, 4.4.2 isProportionate() test.static int
static float
getH()
Return the number of bits of entropy per byte of original noise.static int
static int
Return the C value for the SP 800-90B, 4.4.1 isStuck() test.
-
Constructor Details
-
FipsEntropyConfig
public FipsEntropyConfig()
-
-
Method Details
-
getH
public static float getH()Return the number of bits of entropy per byte of original noise.- Returns:
- H, the amount of entropy in a byte.
-
getStuckC
public static int getStuckC()Return the C value for the SP 800-90B, 4.4.1 isStuck() test.- Returns:
- C.
-
getAdaptiveProportionateC
public static int getAdaptiveProportionateC()Return the C value for the SP 800-90B, 4.4.2 isProportionate() test.- Returns:
- proportionate C.
-
getAdaptiveProportionateW
public static int getAdaptiveProportionateW() -
getMaxRetries
public static int getMaxRetries()
-