| Modifier and Type | Field and Description |
|---|---|
| private static final BigInteger | |
| private static final BigInteger |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | |
| public static GF2Vector | |
| public static byte[] | Returns: a message representative for minteger n, int integer t, byte[] the message vector as a byte array m)Compute a message representative of a message given as a vector of length n bit and of hamming weight t. |
| ONE | back to summary |
|---|---|
| private static final BigInteger ONE | |
| ZERO | back to summary |
|---|---|
| private static final BigInteger ZERO | |
| Conversions | back to summary |
|---|---|
| private Conversions() Default constructor (private). | |
| decode | back to summary |
|---|---|
| public static byte[] decode(int n, int t, GF2Vector vec) Decode a binary vector of length n and weight t into a number between 0 and (n|t) (binomial coefficient). The result is given as a byte array of length floor[(s+7)/8], where s = floor[log(n|t)].
| |
| encode | back to summary |
|---|---|
| public static GF2Vector encode(final int n, final int t, final byte[] m) Encode a number between 0 and (n|t) (binomial coefficient) into a binary vector of length n with weight t. The number is given as a byte array. Only the first s bits are used, where s = floor[log(n|t)]. | |
| signConversion | back to summary |
|---|---|
| public static byte[] signConversion(int n, int t, byte[] m) Compute a message representative of a message given as a vector of length n bit and of hamming weight t. The result is a byte array of length (s+7)/8, where s = floor[log(n|t)].
| |