@Alpha public final class Field25519 extends Object
Field elements are written as an array of signed, 64-bit limbs (an array of longs), least significant first. The value of the field element is:
x[0] + 2^26·x[1] + 2^51·x[2] + 2^77·x[3] + 2^102·x[4] + 2^128·x[5] + 2^153·x[6] + 2^179·x[7] + 2^204·x[8] + 2^230·x[9],
i.e. the limbs are 26, 25, 26, 25, ... bits wide.
| Modifier and Type | Field and Description |
|---|---|
static int |
FIELD_LEN
During Field25519 computation, the mixed radix representation may be in different forms:
Reduced-size form: the array has size at most 10.
|
static int |
LIMB_CNT |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
contract(long[] inputLimbs)
Takes a fully reduced mixed radix form number and contract it into a little-endian, 32-byte
array.
|
public static final int FIELD_LEN
public static final int LIMB_CNT