ValidatedEd25519CurveApi class
ValidatedCurveApi wrapper for an Ed25519CurveApi implementation.
- Inheritance
-
- Object
- ValidatedCurveApi
- ValidatedEd25519CurveApi
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- inner → CurveApi
-
finalinherited
- pointLen → int
-
Compressed point length in bytes (curve-specific).
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scalarLen → int
-
Scalar length in bytes (curve-specific).
no setterinherited
- tag → String
-
finalinherited
Methods
-
add(
List< int> a, List<int> b) → BuBytes -
Point addition; both pointLen bytes. Returns pointLen bytes. Throws on invalid encoding.
inherited
-
addVar(
List< int> a, List<int> b) → BuBytes -
Point addition (variable-time); both 32-byte compressed. Returns 32-byte compressed point. Throws on invalid encoding.
override
-
call<
T> (String op, T run()) → T -
Runs
run, wrapping any non-crypto exception asCryptoException.inherited -
doubleScalarMult(
List< int> s1, List<int> p1, List<int> s2, List<int> p2) → BuBytes -
Computes s1·p1 + s2·p2; scalars 32-byte LE, points 32-byte compressed. Returns 32-byte compressed point. Throws on invalid input.
override
-
geDoubleScalarMultBasePointVar(
{required List< int> a, required List<int> g, required List<int> b}) → BuBytes -
a·B + b·P;
a/b32-byte LE scalars,g/b32-byte compressed points. Returns 32-byte compressed point. Throws on invalid input.override -
geDoubleScalarMultPrecompPointVar(
List< int> a, List<List< aI, List<int> >int> b, List<List< bI) → BuBytesint> > -
a·A + b·B with precomputed tables
aI/bI(from geDsmPrecompVar); scalars 32-byte LE. Returns 32-byte compressed point. Throws on invalid input.override -
geDsmPrecompVar(
List< int> p) → List<List< int> > -
Precomputes sliding-window table for
p(32-byte compressed) for the *_PrecompPointVar multis. Returns table rows. Throws on invalid point.override -
generator(
) → BuBytes -
Generator point. Returns pointLen bytes, never null.
inherited
-
geTripleScalarMultBasePointVar(
{required List< int> a, required List<int> b, required List<List< bI, required List<int> >int> c, required List<List< cI}) → BuBytesint> > -
a·B + b·P + c·Q with precomputed
bI/cI; scalars 32-byte LE, points 32-byte compressed. Returns 32-byte compressed point. Throws on invalid input.override -
geTripleScalarMultPrecompPointVar(
List< int> a, List<List< aI, List<int> >int> b, List<List< bI, List<int> >int> c, List<List< cI) → BuBytesint> > -
a·A + b·B + c·C with precomputed
aI/bI/cI; scalars 32-byte LE. Returns 32-byte compressed point. Throws on invalid input.override -
hashToEc(
List< int> data) → BuBytes -
Maps 32-byte
datato a 32-byte compressed Edwards point (Elligator/hash-to-point). Throws on invalid length.override -
identity(
) → BuBytes -
Identity (zero) point. Returns pointLen bytes, never null.
inherited
-
mul8(
List< int> point) → BuBytes -
Multiplies
point(32-byte compressed) by the cofactor 8. Returns 32-byte compressed point. Throws on invalid encoding.override -
mul8Mult(
List< int> scalar, List<int> point) → BuBytes -
Fused
mul8(mult(scalar, point)): computes 8 * (scalar * point) without intermediate encoding;scalarandpointare 32-byte LE/compressed. Returns 32-byte compressed point. Throws on invalid input. Constant-time onscalar.override -
mulAdd(
List< int> s1, List<int> p1, List<int> s2, List<int> p2) → BuBytes -
Computes s1·p1 + s2·p2; scalars scalarLen bytes, points pointLen bytes. Returns pointLen bytes. Throws on invalid input.
inherited
-
mult(
List< int> scalar, List<int> point) → BuBytes -
Scalar-times-point;
scalaris scalarLen bytes,pointis pointLen bytes. Returns pointLen bytes. Throws on invalid input.inherited -
multBase(
List< int> scalar) → BuBytes -
Scalar-times-generator;
scalaris scalarLen bytes. Returns pointLen bytes. Throws on invalid scalar/point.inherited -
neg(
List< int> point) → BuBytes -
Point negation; pointLen bytes. Returns pointLen bytes. Throws on invalid encoding.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reduceMultBase(
List< int> scalar) → BuBytes -
Reduces
scalar(any length, 32-byte LE) then multiplies by base. Returns 32-byte compressed point. Throws on invalid input.override -
scAdd(
List< int> a, List<int> b) → BuBytes -
Scalar addition mod n; both scalarLen bytes. Returns scalarLen bytes. Throws on invalid scalar.
inherited
-
scAddVar(
List< int> a, List<int> b) → BuBytes -
Scalar addition (variable-time); both 32-byte LE. Returns 32-byte scalar. Throws on invalid scalar.
override
-
scCheck(
List< int> s) → bool -
True if
scalaris a canonically encoded scalar of scalarLen bytes, else false, never throws for length mismatch.inherited -
scIsNonZero(
List< int> s) → bool -
True if 32-byte LE
sis non-zero (and canonical), else false, never throws for bad length.override -
scMul(
List< int> a, List<int> b) → BuBytes -
Scalar multiplication mod n; both scalarLen bytes. Returns scalarLen bytes. Throws on invalid scalar.
inherited
-
scMulAdd(
List< int> a, List<int> b, List<int> c) → BuBytes -
Computes a·b + c; all 32-byte LE scalars. Returns 32-byte scalar. Throws on invalid scalar.
override
-
scMulAddVar(
List< int> scalar, List<int> scalar2, List<int> scalar3) → BuBytes -
Computes scalar·scalar2 + scalar3 (variable-time); all 32-byte LE. Returns 32-byte scalar. Throws on invalid scalar.
override
-
scMulSub(
List< int> a, List<int> b, List<int> c) → BuBytes -
Computes a·b − c; all 32-byte LE scalars. Returns 32-byte scalar. Throws on invalid scalar.
override
-
scMulVar(
List< int> a, List<int> b) → BuBytes -
Scalar multiplication (variable-time); both 32-byte LE. Returns 32-byte scalar. Throws on invalid scalar.
override
-
scNeg(
List< int> s) → BuBytes -
Scalar negation mod n; scalarLen bytes. Returns scalarLen bytes. Throws on invalid scalar.
inherited
-
scReduce(
List< int> s) → BuBytes -
Reduces arbitrary-length
smod n. Returns scalarLen bytes. Throws on empty input.inherited -
scReduce64(
List< int> s) → BuBytes -
Reduces 64-byte
smod L. Returns 32-byte LE scalar. Throws on invalid length.override -
scSub(
List< int> a, List<int> b) → BuBytes -
Scalar subtraction mod n; both scalarLen bytes. Returns scalarLen bytes. Throws on invalid scalar.
inherited
-
scSubVar(
List< int> a, List<int> b) → BuBytes -
Scalar subtraction (variable-time); both 32-byte LE. Returns 32-byte scalar. Throws on invalid scalar.
override
-
sub(
List< int> a, List<int> b) → BuBytes -
Point subtraction; both pointLen bytes. Returns pointLen bytes. Throws on invalid encoding.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validatePoint(
List< int> p, String op) → void -
Throws if
pisn't exactly pointLen bytes.inherited -
validateScalar(
List< int> s, String op) → void -
Throws if
sisn't exactly scalarLen bytes.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited