|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.pqc.math.linearalgebra.BigIntUtils
public final class BigIntUtils
FIXME: is this really necessary?!
| Method Summary | |
|---|---|
static boolean |
equals(java.math.BigInteger[] a,
java.math.BigInteger[] b)
Checks if two BigInteger arrays contain the same entries |
static void |
fill(java.math.BigInteger[] array,
java.math.BigInteger value)
Fill the given BigInteger array with the given value. |
static java.math.BigInteger[] |
subArray(java.math.BigInteger[] input,
int start,
int end)
Generates a subarray of a given BigInteger array. |
static int[] |
toIntArray(java.math.BigInteger[] input)
Converts a BigInteger array into an integer array |
static int[] |
toIntArrayModQ(int q,
java.math.BigInteger[] input)
Converts a BigInteger array into an integer array, reducing all BigIntegers mod q. |
static byte[] |
toMinimalByteArray(java.math.BigInteger value)
Return the value of big as a byte array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean equals(java.math.BigInteger[] a,
java.math.BigInteger[] b)
a - first BigInteger arrayb - second BigInteger array
public static void fill(java.math.BigInteger[] array,
java.math.BigInteger value)
array - the arrayvalue - the value
public static java.math.BigInteger[] subArray(java.math.BigInteger[] input,
int start,
int end)
input - -
the input BigInteger arraystart - -
the start indexend - -
the end index
public static int[] toIntArray(java.math.BigInteger[] input)
input - -
the BigInteger array
public static int[] toIntArrayModQ(int q,
java.math.BigInteger[] input)
q - -
the modulusinput - -
the BigInteger array
public static byte[] toMinimalByteArray(java.math.BigInteger value)
value - the BigInteger value to be converted to a byte
array
|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||