Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstHash.Done

procedure Done(aDigest: Pointer; aDigestLen: Integer = -1); override;
This is the concrete, droppable-on-a-form component an application uses to compute a plain (or, via SetKeyIntf, HMAC-style keyed) hash of some data -- set HashAlgorithm, then call SetUp (SetKeyIntf/SetKeyBuf do this for you when supplying a key) to create the underlying tHash, feed data via HashStr/HashData/HashPtr/HashIntf, then call Done (or read Digest) to get the result. Done itself will SetUp on demand if no data was fed yet, finalizes the tHash instance and copies (up to) aDigestLen bytes into aDigest. No client/server-specific meaning.