| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| public static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| 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.the value to be converted. value)Return the passed in value as an unsigned byte array. |
| public static byte[] | Returns: a byte array padded to a fixed length with leading zeros.the fixed length of the result length, BigInteger the value to be converted. value)Return the passed in value as an unsigned byte array of the specified length, padded with leading zeros as necessary.. |
| public static void | asUnsignedByteArray(BigInteger
the value to be converted. value, byte[] the buffer to which the value is written. buf, int the start offset in array off, int buf at which the data is written.the fixed length of data written (possibly padded with leading zeros). len)Write the passed in value as unsigned bytes to the specified buffer range, padded with leading zeros as necessary. |
| public static byte | |
| 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 | Returns: a positive BigInteger of numBits lengthbit length for the generated BigInteger. bitLength, int certainty, SecureRandom a source of randomness. random)Return a prime number candidate of the specified bit length. |
| public static BigInteger | |
| public static BigInteger | |
| public static int | |
| public static int | |
| public static long | |
| public static BigInteger | |
| public static BigInteger | |
| public static short |
| MAX_ITERATIONS | back to summary |
|---|---|
| private static final int MAX_ITERATIONS | |
| MAX_SMALL | back to summary |
|---|---|
| private static final int MAX_SMALL | |
| ONE | back to summary |
|---|---|
| public static final BigInteger ONE | |
| SMALL_PRIMES_PRODUCT | back to summary |
|---|---|
| private static final BigInteger SMALL_PRIMES_PRODUCT | |
| THREE | back to summary |
|---|---|
| private static final BigInteger THREE | |
| TWO | back to summary |
|---|---|
| public static final BigInteger TWO | |
| 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 of the specified length, padded with leading zeros as necessary..
| |
| asUnsignedByteArray | back to summary |
|---|---|
| public static void asUnsignedByteArray(BigInteger value, byte[] buf, int off, int len) Write the passed in value as unsigned bytes to the specified buffer range, padded with leading zeros as necessary.
| |
| byteValueExact | back to summary |
|---|---|
| public static byte byteValueExact(BigInteger x) | |
| 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'
| |
| createRandomPrime | back to summary |
|---|---|
| public static BigInteger createRandomPrime(int bitLength, int certainty, SecureRandom random) Return a prime number candidate of the specified bit length.
| |
| fromUnsignedByteArray | back to summary |
|---|---|
| public static BigInteger fromUnsignedByteArray(byte[] buf) | |
| fromUnsignedByteArray | back to summary |
|---|---|
| public static BigInteger fromUnsignedByteArray(byte[] buf, int off, int length) | |
| getUnsignedByteLength | back to summary |
|---|---|
| public static int getUnsignedByteLength(BigInteger n) | |
| intValueExact | back to summary |
|---|---|
| public static int intValueExact(BigInteger x) | |
| longValueExact | back to summary |
|---|---|
| public static long longValueExact(BigInteger x) | |
| modOddInverse | back to summary |
|---|---|
| public static BigInteger modOddInverse(BigInteger M, BigInteger X) | |
| modOddInverseVar | back to summary |
|---|---|
| public static BigInteger modOddInverseVar(BigInteger M, BigInteger X) | |
| shortValueExact | back to summary |
|---|---|
| public static short shortValueExact(BigInteger x) | |
| Modifier and Type | Field and Description |
|---|---|
| private final BigInteger[] | |
| private int | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public synchronized void | |
| public synchronized boolean | |
| public synchronized int |
| preserve | back to summary |
|---|---|
| private final BigInteger[] preserve | |
| preserveCounter | back to summary |
|---|---|
| private int preserveCounter | |
| values | back to summary |
|---|---|
| private final Map<BigInteger, Boolean> values | |
| Cache | back to summary |
|---|---|
| public Cache() | |
| add | back to summary |
|---|---|
| public synchronized void add(BigInteger value) | |
| clear | back to summary |
|---|---|
| public synchronized void clear() | |
| contains | back to summary |
|---|---|
| public synchronized boolean contains(BigInteger value) | |
| size | back to summary |
|---|---|
| public synchronized int size() | |