inherits from tOptionallyRefCountedObject
implements iECurve, iDiscreteLogField
constructor Create;
destructor Destroy; override;
class function IsCurve(ACurve: iECurve): Boolean; virtual;
inherits from tCustomECurve
(no public members)
Field workspace for the allocation-free EC scalar multiplication (tECPoint.InternalMulWs / InternalMulFixedWs). All members are preallocated local integers; see StreamSec.DSI.Arith.DSIWsMulMod.
fQ : iDSInteger;
fA : iDSInteger;
fInv2 : iDSInteger;
fMulTmp : iDSInteger;
fProd : iDSInteger;
fQuot : iDSInteger;
fFieldWords: UInt32;
(no public members)
fX: iDSInteger;
fY: iDSInteger;
fZ: iDSInteger;
fCurve: iECurve;
fFixedType: Boolean;
function ProjectiveToAffine: iECPoint;
class function InternalMul(const aTerm0: tECPoint; const aTerm1: iDSInteger): tECPoint; static;
class function InternalMulFixed(const aTerm0: tECPoint; const aTerm1: iDSInteger): tECPoint; static;
class function InternalMulWs(const aTerm0: tECPoint; const aTerm1: iDSInteger): tECPoint; static;
class function InternalMulFixedWs(const aTerm0: tECPoint; const aTerm1: iDSInteger): tECPoint; static;
procedure MakeInf(const aCurve: iECurve);
function IsInf: Boolean;
inherits from iECPoint
function Decompress(aCompressedBit: Boolean): Boolean;
function CompressedBit: Boolean;
function IsOnCurve: Boolean;
function IsInf: Boolean;
(no public members)
inherits from tECPointImpl
implements IUnknown, iGroupElement, iECPoint, iECPointInternal
constructor Create(const aCurve: iECurve);
inherits from tECPointImpl
implements IUnknown, iGroupElement, iECPoint, iECPointInternal
constructor Create(const aCurve: iECurve);
class function CreateInf(const aCurve: iECurve): tECPointRefCounted;
procedure AfterConstruction; override;
class function NewInstance: TObject{$IFDEF AUTOREFCOUNT} unsafe {$ENDIF}; override;
aDst := (aX * aY) mod aWs.fQ, allocation-free; aDst may alias aX/aY.
Returns True and a MulMod implementation when aCurve has a dedicated fixed-modulus multiplier (e.g. tECurveP256's fused Solinas multiply).