Secure hash interface.
Public Member Functions | |
| virtual const achar * | GetHashType () 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 iUnknown * | QueryInterface (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... | |
|
pure virtual |
Get the hash type. {Property}.
|
pure virtual |
Get the digest size. {Property}.
|
pure virtual |
Ends the calculation of the current digest and reset the states for a new calculation.
Adds data to the hash calculation, from the current file position for size bytes.
Adds data to the hash calculation, specifing a data range.
Adds raw data to the hash calculation. {NoAutomation}.
|
pure virtual |
Ends the calculation of the current digest, return the digest as a string.
Ends the calculation of the current digest, put the digest in the specified file.
1.8.7