Top Inners Fields Constructors Methods
org.bouncycastle.crypto.fips

pack-priv Class DRBGUtils

extends Object
Class Inheritance
Imports
java.util.Hashtable, org.bouncycastle.crypto.EntropySource, org.bouncycastle.crypto.internal.Digest, .Mac, org.bouncycastle.util.Integers, org.bouncycastle.util.encoders.Hex

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv static final Hashtable<K, V>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static int
pack-priv static int
pack-priv static byte[]
hash_df(Digest digest, byte[] seedMaterial, int seedLength)

Used by both Dual EC and Hash.

pack-priv static boolean
isTooLarge(byte[] bytes, int maxBytes)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

maxSecurityStrengthsback to summary
pack-priv static final Hashtable<K, V> maxSecurityStrengths

Constructor Detail

DRBGUtilsback to summary
pack-priv DRBGUtils()

Method Detail

getMaxSecurityStrengthback to summary
pack-priv static int getMaxSecurityStrength(Digest d)
getMaxSecurityStrengthback to summary
pack-priv static int getMaxSecurityStrength(Mac m)
hash_dfback to summary
pack-priv static byte[] hash_df(Digest digest, byte[] seedMaterial, int seedLength)

Used by both Dual EC and Hash.

isTooLargeback to summary
pack-priv static boolean isTooLarge(byte[] bytes, int maxBytes)
org.bouncycastle.crypto.fips back to summary

pack-priv Class DRBGUtils.KATEntropyProvider

extends FixedEntropySourceProvider
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from org.bouncycastle.crypto.fips.FixedEntropySourceProvider:
get

Constructor Detail

KATEntropyProviderback to summary
pack-priv KATEntropyProvider()
org.bouncycastle.crypto.fips back to summary

pack-priv Class DRBGUtils.LyingEntropySource

extends Object
implements EntropySource
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.EntropySource

For self testing

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
LyingEntropySource(int entropySize)

Method Summary

Modifier and TypeMethod and Description
public int
entropySize()

Implements org.bouncycastle.crypto.EntropySource.entropySize.

Return the number of bits of entropy this source can produce.
public byte[]
getEntropy()

Implements org.bouncycastle.crypto.EntropySource.getEntropy.

Return a byte array of entropy.
public boolean
isPredictionResistant()

Implements org.bouncycastle.crypto.EntropySource.isPredictionResistant.

Return whether or not this entropy source is regarded as prediction resistant.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entropySizeback to summary
private final int entropySize

Constructor Detail

LyingEntropySourceback to summary
pack-priv LyingEntropySource(int entropySize)

Method Detail

entropySizeback to summary
public int entropySize()

Implements org.bouncycastle.crypto.EntropySource.entropySize.

Doc from org.bouncycastle.crypto.EntropySource.entropySize.

Return the number of bits of entropy this source can produce.

Returns:int

size in bits of the return value of getEntropy.

getEntropyback to summary
public byte[] getEntropy()

Implements org.bouncycastle.crypto.EntropySource.getEntropy.

Doc from org.bouncycastle.crypto.EntropySource.getEntropy.

Return a byte array of entropy.

Returns:byte[]

entropy bytes.

isPredictionResistantback to summary
public boolean isPredictionResistant()

Implements org.bouncycastle.crypto.EntropySource.isPredictionResistant.

Doc from org.bouncycastle.crypto.EntropySource.isPredictionResistant.

Return whether or not this entropy source is regarded as prediction resistant.

Returns:boolean

true if it is, false otherwise.