| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| public static final BigInteger | |
| public static final BigInteger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | Returns: a byte array without a leading zero byte if present in the signed encoding.value to be converted. value)Return the passed in value as an unsigned byte array. |
| public static byte[] | Returns: a byte array without a leading zero byte if present in the signed encoding.value to be converted. value)Return the passed in value as an unsigned byte array. |
| private static byte[] | |
| public static BigInteger | Returns: a positive BigIntegermaximum bit length for the generated BigInteger. bitLength, SecureRandom a source of randomness. random)Return a positive BigInteger in the range of 0 to 2**bitLength - 1. |
| public static BigInteger | Returns: a random BigInteger value in the range [min,max]the least value that may be generated min, BigInteger the greatest value that may be generated max, SecureRandom the source of randomness random)Return a random BigInteger not less than 'min' and not greater than 'max' |
| public static BigInteger | |
| public static BigInteger |
| MAX_ITERATIONS | back to summary |
|---|---|
| private static final int MAX_ITERATIONS | |
| ONE | back to summary |
|---|---|
| public static final BigInteger ONE | |
| ZERO | back to summary |
|---|---|
| public static final BigInteger ZERO | |
| BigIntegers | back to summary |
|---|---|
| public BigIntegers() | |
| asUnsignedByteArray | back to summary |
|---|---|
| public static byte[] asUnsignedByteArray(BigInteger value) Return the passed in value as an unsigned byte array.
| |
| asUnsignedByteArray | back to summary |
|---|---|
| public static byte[] asUnsignedByteArray(int length, BigInteger value) Return the passed in value as an unsigned byte array.
| |
| createRandom | back to summary |
|---|---|
| private static byte[] createRandom(int bitLength, SecureRandom random) throws IllegalArgumentException | |
| createRandomBigInteger | back to summary |
|---|---|
| public static BigInteger createRandomBigInteger(int bitLength, SecureRandom random) Return a positive BigInteger in the range of 0 to 2**bitLength - 1.
| |
| createRandomInRange | back to summary |
|---|---|
| public static BigInteger createRandomInRange(BigInteger min, BigInteger max, SecureRandom random) Return a random BigInteger not less than 'min' and not greater than 'max'
| |
| fromUnsignedByteArray | back to summary |
|---|---|
| public static BigInteger fromUnsignedByteArray(byte[] buf) | |
| fromUnsignedByteArray | back to summary |
|---|---|
| public static BigInteger fromUnsignedByteArray(byte[] buf, int off, int length) | |