Class Curve25519
java.lang.Object
dk.jonaslindstrom.ruffini.elliptic.structures.MontgomeryCurve<BigInteger,dk.jonaslindstrom.ruffini.finitefields.BigPrimeField>
dk.jonaslindstrom.ruffini.elliptic.structures.Curve25519
- All Implemented Interfaces:
dk.jonaslindstrom.ruffini.common.abstractions.AdditiveGroup<AffinePoint<BigInteger>>,dk.jonaslindstrom.ruffini.common.abstractions.CommutativeMonoid<AffinePoint<BigInteger>>,dk.jonaslindstrom.ruffini.common.abstractions.Set<AffinePoint<BigInteger>>
public class Curve25519
extends MontgomeryCurve<BigInteger,dk.jonaslindstrom.ruffini.finitefields.BigPrimeField>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic BigIntegerstatic AffinePoint<BigInteger>static BigIntegerstatic BigIntegerFields inherited from class dk.jonaslindstrom.ruffini.elliptic.structures.MontgomeryCurve
B, field -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodePoint(byte[] bytes) decodeScalar(byte[] bytes) static byte[]encodePoint(AffinePoint<BigInteger> point) Methods inherited from class dk.jonaslindstrom.ruffini.elliptic.structures.MontgomeryCurve
add, discriminant, equals, getA, getB, getCorrespondingWeierstrassCurve, getField, getZero, jInvariant, negate, toString, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.AdditiveGroup
doubling, isZero, scale, scale, subtractMethods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.CommutativeMonoid
add, add
-
Field Details
-
BASE_POINT
-
SUBGROUP_ORDER
-
P
-
A
-
-
Constructor Details
-
Curve25519
public Curve25519()
-
-
Method Details
-
encodePoint
-
decodeScalar
-
decodePoint
public AffinePoint<BigInteger> decodePoint(byte[] bytes) throws dk.jonaslindstrom.ruffini.common.exceptions.InvalidParametersException - Throws:
dk.jonaslindstrom.ruffini.common.exceptions.InvalidParametersException
-