methodTstCustomMAC.Done
procedure Done(Digest: Pointer; DigestLen: Integer = -1); virtual; abstract;
Abstract in this base class; finalizes the running hash/MAC and, when the Digest pointer is non-nil, copies up to aDigestLen bytes of the result to it (aDigestLen is clamped to the algorithm's digest size). Passing nil still computes and stores the digest, which is then readable via the Digest property. An application calls this after feeding all data through HashData/HashStr/etc. to obtain the final MAC/hash value -- concretely realized by TstHash.Done (plain hash) and TstCipherMAC.Done (cipher-based MAC, e.g. CBC-MAC/OMAC). No client/server-specific meaning; used identically on either side of a protocol that needs to compute or verify a MAC.