org.bouncycastle.util.test

Class FixedSecureRandom


public class FixedSecureRandom
extends SecureRandom

Constructor Summary

FixedSecureRandom(boolean intPad, byte[] value)
Pad the data on integer boundaries.
FixedSecureRandom(boolean intPad, byte[][] values)
Pad the data on integer boundaries.
FixedSecureRandom(byte[] value)
FixedSecureRandom(byte[][] values)

Method Summary

boolean
isExhausted()
void
nextBytes(byte[] bytes)
int
nextInt()
long
nextLong()

Constructor Details

FixedSecureRandom

public FixedSecureRandom(boolean intPad,
                         byte[] value)
Pad the data on integer boundaries. This is necessary for the classpath project's BigInteger implementation.

FixedSecureRandom

public FixedSecureRandom(boolean intPad,
                         byte[][] values)
Pad the data on integer boundaries. This is necessary for the classpath project's BigInteger implementation.

FixedSecureRandom

public FixedSecureRandom(byte[] value)

FixedSecureRandom

public FixedSecureRandom(byte[][] values)

Method Details

isExhausted

public boolean isExhausted()

nextBytes

public void nextBytes(byte[] bytes)

nextInt

public int nextInt()

nextLong

public long nextLong()