Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.DSI.FFC

Classes, interfaces and records

classtFFSystemParams

constructor Create(const aPool: iDSIDLArith); procedure Assign(const aSrc: iDiscreteLogField); overload; procedure Assign(const aSrc: iFFSystemParams); overload; function Clone: iFFSystemParams; function Compare(const aParams: iDiscreteLogField): Boolean; overload;
Delegates to Assigned, passing 1 argument(s), and returns its result.
function Compare(const aParams: iFFSystemParams): Boolean; overload;
Delegates to Assigned, passing 1 argument(s), and returns its result.
procedure Generate(aBitSize: Cardinal; aQBitSize: Cardinal); function Validate: Boolean; function ScalarFixBitLength: Integer;
Always returns 0.
function FieldElementToBytes(const aElement: iGroupElement) : tBytes; overload; function FieldElementToBytes(const aElement : iGroupElement; const aDst : tBytes; aDstOffset: Integer; var aDstCount : Integer) : Boolean; overload; function BytesToFieldElement(const aSrc : tBytes) : iGroupElement; overload;
Delegates to BytesToFieldElement, passing 3 argument(s), and returns its result.
function BytesToFieldElement(const aSrc : tBytes; aSrcOffset, aSrcCount : Integer) : iGroupElement; overload;
Delegates to BytesToFieldElement, passing 3 argument(s), and returns its result.
function IsNonTrivialFieldElement(const aElement: iGroupElement) : Boolean; function IsGroupElement(const aElement: iGroupElement) : Boolean; property Pool: iDSIDLArith read GetPool; property P: iDSInteger read GetP write SetP; property Q: iDSInteger read GetQ write SetQ; property G: iDSInteger read GetG write SetG; property J: iDSInteger read GetJ write SetJ; function iDiscreteLogField.GetPrimeModulus = GetP; function iDiscreteLogField.GetGroupOrder = GetQ; function iDiscreteLogField.GetCoFactor = GetJ; procedure iDiscreteLogField.SetPrimeModulus = SetP; procedure iDiscreteLogField.SetGroupOrder = SetQ; procedure iDiscreteLogField.SetCoFactor = SetJ;

interfaceiFFPrivateKey

inherits from iDLPrivateKey

procedure NewKeys(aBitSize: Cardinal; aQBitSize: Cardinal; var aPubl: iDLPublicKey); overload;

interfaceIFFPublicKey

inherits from iDLPublicKey

(no public members)

classtFFPrivateKey

inherits from tDLPrivateKey

implements iFFPrivateKey

procedure NewKeys(aBitSize: Cardinal; aQBitSize: Cardinal; var aPubl: iDLPublicKey); overload;

classtFFPublicKey

inherits from tDLPublicKey

implements iFFPublicKey

(no public members)

classtDSIFF

inherits from tDSIDLArith

implements iDSIFF

class function NISTMode: Boolean;
Returns the value of gNISTMode.
class procedure EnableNISTMode; class procedure DisableNISTMode; class function CreatePrivateKey(const aPool: iDSIDLArith; const aParams: iDiscreteLogField): iDLPrivateKey; override;
Delegates to tFFPrivateKey.Create, forwarding aPool and aParams, and returns its result.
class function CreatePublicKey(const aPool: iDSIDLArith; const aParams: iDiscreteLogField): iDLPublicKey; override;
Delegates to tFFPublicKey.Create, forwarding aPool and aParams, and returns its result.
function IsNonTrivialFieldElement(const aElement: iGroupElement; const aParams : iDiscreteLogField) : Boolean; override; function IsGroupElement(const aElement: iGroupElement; const aParams : iDiscreteLogField) : Boolean; override; function FieldElementToBytes(const aElement : iGroupElement; const aParams : iDiscreteLogField; const aDst : tBytes; aDstOffset: Integer; var aDstCount : Integer) : Boolean; override; function BytesToFieldElement(const aSrc : tBytes; aSrcOffset, aSrcCount : Integer; const aParams : iDiscreteLogField) : iGroupElement; override;
Delegates to aParams.BytesToFieldElement, forwarding aSrc, aSrcOffset and aSrcCount, and returns its result.
procedure NewKeys(aBitSize : Cardinal; aQBitSize : Cardinal; var aPriv : iDLPrivateKey; var aPubl : iDLPublicKey; aTerminate: tGetTerminate = nil); overload;

Types (enumerations, sets, aliases)

typeiFFSystemParams

  iFFSystemParams = StreamSec.DSI.PKTypes.iFFSystemParams;