Top Description Constructors Methods
org.bouncycastle.util.test

public Class TestRandomBigInteger

extends FixedSecureRandom
Class Inheritance
Imports
org.bouncycastle.util.BigIntegers

A fixed secure random designed to return data for someone needing to create a single BigInteger.

Constructor Summary

AccessConstructor and Description
public
TestRandomBigInteger(String
a base 10 represention of a BigInteger.
encoding
)

Constructor from a base 10 represention of a BigInteger.

public
TestRandomBigInteger(String
a String BigInteger of base radix.
encoding
,
int
the radix to use.
radix
)

Constructor from a base radix represention of a BigInteger.

public
TestRandomBigInteger(byte[]
a 2's complement representation of the BigInteger.
encoding
)

Constructor based on a byte array.

public
TestRandomBigInteger(int
bit length for the BigInteger data request.
bitLength
,
byte[]
bytes making up the encoding.
encoding
)

Constructor which ensures encoding will produce a BigInteger from a request from the passed in bitLength.

Method Summary

Inherited from org.bouncycastle.util.test.FixedSecureRandom:
generateSeedisExhaustednextBytesnextIntnextLong

Constructor Detail

TestRandomBigIntegerback to summary
public TestRandomBigInteger(String encoding)

Constructor from a base 10 represention of a BigInteger.

Parameters
encoding:String

a base 10 represention of a BigInteger.

TestRandomBigIntegerback to summary
public TestRandomBigInteger(String encoding, int radix)

Constructor from a base radix represention of a BigInteger.

Parameters
encoding:String

a String BigInteger of base radix.

radix:int

the radix to use.

TestRandomBigIntegerback to summary
public TestRandomBigInteger(byte[] encoding)

Constructor based on a byte array.

Parameters
encoding:byte[]

a 2's complement representation of the BigInteger.

TestRandomBigIntegerback to summary
public TestRandomBigInteger(int bitLength, byte[] encoding)

Constructor which ensures encoding will produce a BigInteger from a request from the passed in bitLength.

Parameters
bitLength:int

bit length for the BigInteger data request.

encoding:byte[]

bytes making up the encoding.