| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true or falsefirst BigInteger array a, BigInteger[] second BigInteger array b)Checks if two BigInteger arrays contain the same entries |
| public static void | fill(BigInteger[]
the array array, BigInteger the value value)Fill the given BigInteger array with the given value. |
| public static BigInteger[] | Returns: a subarray of input, ranging from start to end-
the input BigInteger array input, int -
the start index start, int -
the end index end)Generates a subarray of a given BigInteger array. |
| public static int[] | Returns: the integer array-
the BigInteger array input)Converts a BigInteger array into an integer array |
| public static int[] | Returns: the integer array-
the modulus q, BigInteger[] -
the BigInteger array input)Converts a BigInteger array into an integer array, reducing all BigIntegers mod q. |
| public static byte[] | Returns: the value big as byte arraythe BigInteger value to be converted to a byte
array value)Return the value of big as a byte array. |
| BigIntUtils | back to summary |
|---|---|
| private BigIntUtils() Default constructor (private). | |
| equals | back to summary |
|---|---|
| public static boolean equals(BigInteger[] a, BigInteger[] b) Checks if two BigInteger arrays contain the same entries
| |
| fill | back to summary |
|---|---|
| public static void fill(BigInteger[] array, BigInteger value) Fill the given BigInteger array with the given value.
| |
| subArray | back to summary |
|---|---|
| public static BigInteger[] subArray(BigInteger[] input, int start, int end) Generates a subarray of a given BigInteger array.
| |
| toIntArray | back to summary |
|---|---|
| public static int[] toIntArray(BigInteger[] input) Converts a BigInteger array into an integer array
| |
| toIntArrayModQ | back to summary |
|---|---|
| public static int[] toIntArrayModQ(int q, BigInteger[] input) Converts a BigInteger array into an integer array, reducing all BigIntegers mod q.
| |
| toMinimalByteArray | back to summary |
|---|---|
| public static byte[] toMinimalByteArray(BigInteger value) Return the value of big as a byte array. Although BigInteger has such a method, it uses an extra bit to indicate the sign of the number. For elliptic curve cryptography, the numbers usually are positive. Thus, this helper method returns a byte array of minimal length, ignoring the sign of the number.
| |