| Modifier and Type | Field and Description |
|---|---|
| private static final int[] | BIT1_TABLE
Coefficient to bit string conversion table from P1363.1. |
| private static final int[] | |
| private static final int[] | |
| private static final int[] | COEFF1_TABLE
Bit string to coefficient conversion table from P1363.1. |
| private static final int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int[] | Returns: the decoded coefficientsan encoded ternary polynomial data, int number of coefficients N)Decodes a |
| public static int[] | Returns: the decoded arraya byte array b, int number of coefficients N)Converts a byte array produced by |
| public static int[] | Returns: the decoded arrayan input stream containing the data to decode is, int number of coefficients N)Converts data produced by |
| public static int[] | Returns: an array containingN coefficients between 0 and q-1an encoded ternary polynomial data, int number of coefficients N, int q)Decodes a |
| public static int[] | Returns: the decoded polynomialan encoded ternary polynomial is, int number of coefficients N, int q)Decodes data encoded with |
| public static byte[] | Returns: the encoded arrayEncodes an |
| public static byte[] | Returns: the encoded arrayEncodes an |
| public static byte[] | Returns: the encoded arraythe input array a, int the modulus q)Encodes an int array whose elements are between 0 and |
| private static int |
| BIT1_TABLE | back to summary |
|---|---|
| private static final int[] BIT1_TABLE Coefficient to bit string conversion table from P1363.1. Also found at
Convert each set of two ternary coefficients to three bits as follows, and concatenate the resulting bit quantities to obtain [the output]:
| |
| BIT2_TABLE | back to summary |
|---|---|
| private static final int[] BIT2_TABLE | |
| BIT3_TABLE | back to summary |
|---|---|
| private static final int[] BIT3_TABLE | |
| COEFF1_TABLE | back to summary |
|---|---|
| private static final int[] COEFF1_TABLE Bit string to coefficient conversion table from P1363.1. Also found at
Convert each three-bit quantity to two ternary coefficients as follows, and concatenate the resulting ternary quantities to obtain [the output].
| |
| COEFF2_TABLE | back to summary |
|---|---|
| private static final int[] COEFF2_TABLE | |
| ArrayEncoder | back to summary |
|---|---|
| public ArrayEncoder() | |
| decodeMod3Sves | back to summary |
|---|---|
| public static int[] decodeMod3Sves(byte[] data, int N) Decodes a
| |
| decodeMod3Tight | back to summary |
|---|---|
| public static int[] decodeMod3Tight(byte[] b, int N) Converts a byte array produced by
| |
| decodeMod3Tight | back to summary |
|---|---|
| public static int[] decodeMod3Tight(InputStream is, int N) throws IOException Converts data produced by
| |
| decodeModQ | back to summary |
|---|---|
| public static int[] decodeModQ(byte[] data, int N, int q) Decodes a
| |
| decodeModQ | back to summary |
|---|---|
| public static int[] decodeModQ(InputStream is, int N, int q) throws IOException Decodes data encoded with
| |
| encodeMod3Sves | back to summary |
|---|---|
| public static byte[] encodeMod3Sves(int[] arr) Encodes an
| |
| encodeMod3Tight | back to summary |
|---|---|
| public static byte[] encodeMod3Tight(int[] intArray) Encodes an
| |
| encodeModQ | back to summary |
|---|---|
| public static byte[] encodeModQ(int[] a, int q) Encodes an int array whose elements are between 0 and
| |
| getBit | back to summary |
|---|---|
| private static int getBit(byte[] arr, int bitIndex) | |