com.mindbright.security.prng
Class BlumBlumShub
java.lang.Object
com.mindbright.jca.security.SecureRandomSpi
com.mindbright.security.prng.BlumBlumShub
- All Implemented Interfaces:
- java.io.Serializable
- public final class BlumBlumShub
- extends SecureRandomSpi
- See Also:
- Serialized Form
Field Summary |
static byte[] |
N
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
N
public static final byte[] N
BlumBlumShub
public BlumBlumShub(java.math.BigInteger n,
byte[] seed)
BlumBlumShub
public BlumBlumShub(byte[] seed)
BlumBlumShub
public BlumBlumShub()
nextBits
public int nextBits(int bits)
getBlumInteger
public static java.math.BigInteger getBlumInteger(int bits,
java.util.Random rand)
engineGenerateSeed
protected byte[] engineGenerateSeed(int numBytes)
- Specified by:
engineGenerateSeed
in class SecureRandomSpi
engineNextBytes
protected void engineNextBytes(byte[] bytes)
- Specified by:
engineNextBytes
in class SecureRandomSpi
engineSetSeed
protected void engineSetSeed(byte[] seed)
- Specified by:
engineSetSeed
in class SecureRandomSpi