public class Elligator2MapToCurve extends java.lang.Object implements MapToCurve
| Constructor and Description |
|---|
Elligator2MapToCurve(ECCurve curve,
java.math.BigInteger z,
java.math.BigInteger J,
java.math.BigInteger K)
Constructs an Elligator2MapToCurve instance using the provided elliptic curve parameters and
constants.
|
| Modifier and Type | Method and Description |
|---|---|
ECPoint |
process(java.math.BigInteger u)
Processes the given input value to map it to an elliptic curve point using the Elligator 2
algorithm, optimized for Montgomery curves.
|
public Elligator2MapToCurve(ECCurve curve, java.math.BigInteger z, java.math.BigInteger J, java.math.BigInteger K)
curve - the elliptic curve (ECCurve) to which the input values will be mappedz - a non-square element of the elliptic curve fieldJ - the Montgomery curve equation A value (Named J in RFC 9380)K - the Montgomery curve equation B value (Named K in RFC 9380)public ECPoint process(java.math.BigInteger u)
process in interface MapToCurveu - the input value to be mapped to a point on the elliptic curve