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

Detailed Description

Secure hash interface.

Public Member Functions

virtual const acharGetHashType () const =0
 Get the hash type. {Property}. More...
 
virtual tU32 GetDigestSize () const =0
 Get the digest size. {Property}. More...
 
virtual tBool Restart ()=0
 Ends the calculation of the current digest and reset the states for a new calculation. More...
 
virtual tBool Update (iFile *apFile, tI64 aSize)=0
 Adds data to the hash calculation, from the current file position for size bytes. More...
 
virtual tBool UpdateBlock (iFile *apFile, tI64 aStart, tI64 aSize)=0
 Adds data to the hash calculation, specifing a data range. More...
 
virtual tBool UpdateRaw (tPtr apData, tSize aSize)=0
 Adds raw data to the hash calculation. {NoAutomation}. More...
 
virtual cString FinalString (eRawToStringEncoding aEncoding)=0
 Ends the calculation of the current digest, return the digest as a string. More...
 
virtual tSize FinalFile (iFile *apOutput)=0
 Ends the calculation of the current digest, put the digest in the specified file. More...
 
virtual tSize FinalRaw (tPtr apData, tSize anSize)=0
 Ends the calculation of the current digest, put the digest in the specified raw memory. More...
 
- 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 const achar* GetHashType ( ) const
pure virtual

Get the hash type. {Property}.

virtual tU32 GetDigestSize ( ) const
pure virtual

Get the digest size. {Property}.

virtual tBool Restart ( )
pure virtual

Ends the calculation of the current digest and reset the states for a new calculation.

virtual tBool Update ( iFile apFile,
tI64  aSize 
)
pure virtual

Adds data to the hash calculation, from the current file position for size bytes.

virtual tBool UpdateBlock ( iFile apFile,
tI64  aStart,
tI64  aSize 
)
pure virtual

Adds data to the hash calculation, specifing a data range.

virtual tBool UpdateRaw ( tPtr  apData,
tSize  aSize 
)
pure virtual

Adds raw data to the hash calculation. {NoAutomation}.

virtual cString FinalString ( eRawToStringEncoding  aEncoding)
pure virtual

Ends the calculation of the current digest, return the digest as a string.

Remarks
After final is called new calls to Update can be made to compute a new hash.
virtual tSize FinalFile ( iFile apOutput)
pure virtual

Ends the calculation of the current digest, put the digest in the specified file.

Remarks
After final is called new calls to Update can be made to compute a new hash.
virtual tSize FinalRaw ( tPtr  apData,
tSize  anSize 
)
pure virtual

Ends the calculation of the current digest, put the digest in the specified raw memory.

Remarks
After final is called new calls to Update can be made to compute a new hash.