net.i2p.crypto.eddsa.math
Class Field
java.lang.Object
net.i2p.crypto.eddsa.math.Field
- All Implemented Interfaces:
- Serializable
public class Field
- extends Object
- implements Serializable
An EdDSA finite field. Includes several pre-computed values.
- Since:
- 0.9.15
- Author:
- str4d
- See Also:
- Serialized Form
ZERO
public final FieldElement ZERO
ONE
public final FieldElement ONE
TWO
public final FieldElement TWO
FOUR
public final FieldElement FOUR
FIVE
public final FieldElement FIVE
EIGHT
public final FieldElement EIGHT
Field
public Field(int b,
byte[] q,
Encoding enc)
fromByteArray
public FieldElement fromByteArray(byte[] x)
getb
public int getb()
getQ
public FieldElement getQ()
getQm2
public FieldElement getQm2()
getQm5d8
public FieldElement getQm5d8()
getEncoding
public Encoding getEncoding()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object