X25519 class

Implements scalar multiplication on Curve25519 using the Montgomery ladder. This is the basis for X25519 key agreement as described in RFC 7748.

Constructors

X25519.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

scalarMult(List<int> scalar, List<int> uBytes) List<int>
Perform scalar multiplication with an arbitrary public key (u-coordinate). Returns the shared secret.
scalarMultBase(List<int> scalar) X25519Keypair
Perform scalar multiplication with the base point (u = 9). Returns the X25519 keypair.