* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Author: François PIETTE. Based on work given by Louis S. Berman from
BrainTree Ltd, lsb@braintree.com
Description: MD5 is an implmentation for the MD5 Message-Digest Algorithm
as described in RFC-1321
EMail: francois.piette@ping.be http://www.rtfm.be/fpiette
francois.piette@f2202.n293.z2.fidonet.org
2:293/2202@fidonet.org, BBS +32-4-3651395
Creation: October 11, 1997
Version: 1.00
WebSite: http://www.rtfm.be/fpiette/indexuk.htm
Support: Use the mailing list twsocket@rtfm.be See website for details.
Legal issues: Copyright (C) 1997 by François PIETTE
This software is provided 'as-is', without any express or
implied warranty. In no event will the author be held liable
for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any
purpose, including commercial applications, and to alter it
and redistribute it freely, subject to the following
restrictions:
1. The origin of this software must not be misrepresented,
you must not claim that you wrote the original software.
If you use this software in a product, an acknowledgment
in the product documentation would be appreciated but is
not required.
2. Altered source versions must be plainly marked as such, and
must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
Updates:
Oct 26, 1997 Changed MD5Final form function to procedure to be compatible
with C++Builder.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GetMD5 - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
MD5Final - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} { MD5 finalization.
MD5Init - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} { MD5 initialization.
MD5Transform - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} { MD5 basic transformation.
MD5Update - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} { MD5 block update operation.
MD5UpdateBuffer - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
StrMD5 - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
TMD5Context
TMD5Digest
MD5Version
function GetMD5(Buffer: Pointer; BufSize: Integer): string;
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
procedure MD5Final(var Digest: TMD5Digest; var MD5Context: TMD5Context);
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} { MD5 finalization. Ends an MD5 message-digest operation, writing the message } { digest and zeroizing the context.
procedure MD5Init(var MD5Context: TMD5Context);
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} { MD5 initialization. Begins an MD5 operation, writing a new context.
procedure MD5Transform(var Buf: array of LongInt;
const Data: array of LongInt);
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} { MD5 basic transformation. Transforms state based on block.
procedure MD5Update(var MD5Context: TMD5Context;
const Data;
Len: Integer);
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} { MD5 block update operation. Continues an MD5 message-digest operation, } { processing another message block, and updating the context.
procedure MD5UpdateBuffer(var MD5Context: TMD5Context;
Buffer: Pointer;
BufSize: Integer);
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
function StrMD5(Buffer : String): string;
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
TMD5Context = record
State : array[0..3] of LongInt;
Count : array[0..1] of LongInt;
end;
TMD5Digest = array[0..15] of Char;
MD5Version = 100