TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | List of all members
iCryptoRand Struct Referenceabstract
Inheritance diagram for iCryptoRand:
iUnknown

Detailed Description

Crypto random number generator.

Public Member Functions

virtual void SetEntropyLength (tSize anEntropyLen)=0
 
virtual void SetReseedInterval (tInt anInterval)=0
 
virtual void SetPredictionResistance (tBool abPR)=0
 
virtual tBool Reseed (iFile *apFile, tSize anAddSize)=0
 
virtual tBool ReseedRaw (const tPtr apData, tSize anAddSize)=0
 
virtual tBool Update (iFile *apFile, tSize anAddSize)=0
 
virtual tBool UpdateRaw (const tPtr apAdd, tSize anAddSize)=0
 
virtual tSize RandFile (iFile *apFile, tSize anOutLen)=0
 
virtual tSize RandRaw (tPtr apOut, tSize anOutLen)=0
 
virtual tI64 RandInt ()=0
 
virtual tF64 RandFloat ()=0
 
virtual tUUID RandUUID ()=0
 
- Public Member Functions inherited from iUnknown
virtual tBool IsOK () const =0
 Check if the object is valid. More...
 
virtual tI32 AddRef ()=0
 Signal that one more reference of the object has been created. More...
 
virtual tI32 Release ()=0
 Release a reference of the object. More...
 
virtual void DeleteThis ()=0
 Bypass any reference counting and delete this object. More...
 
virtual void Invalidate ()=0
 Invalidate the object. More...
 
virtual iUnknownQueryInterface (const tUUID &aIID)=0
 Query an interface. More...
 
virtual void ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0
 Fill a UUID list containing the UUIDs of the implemented interfaces. More...
 
virtual tI32 SetNumRefs (tI32 anNumRefs)=0
 Set the reference counter directly. More...
 
virtual tI32 GetNumRefs () const =0
 Get the number of references to this object. More...
 

Member Function Documentation

virtual void SetEntropyLength ( tSize  anEntropyLen)
pure virtual
virtual void SetReseedInterval ( tInt  anInterval)
pure virtual
virtual void SetPredictionResistance ( tBool  abPR)
pure virtual
virtual tBool Reseed ( iFile apFile,
tSize  anAddSize 
)
pure virtual
virtual tBool ReseedRaw ( const tPtr  apData,
tSize  anAddSize 
)
pure virtual
virtual tBool Update ( iFile apFile,
tSize  anAddSize 
)
pure virtual
virtual tBool UpdateRaw ( const tPtr  apAdd,
tSize  anAddSize 
)
pure virtual
virtual tSize RandFile ( iFile apFile,
tSize  anOutLen 
)
pure virtual
virtual tSize RandRaw ( tPtr  apOut,
tSize  anOutLen 
)
pure virtual
virtual tI64 RandInt ( )
pure virtual
virtual tF64 RandFloat ( )
pure virtual
virtual tUUID RandUUID ( )
pure virtual