9 tsha512context
= record
11 state
: array[0..7] of QWORD
;
13 buf
: array[0..127] of byte;
15 tsha512digest
= array [0..63] of byte;
17 function sha512init(out md
:tsha512context
):longint;
18 cdecl; external name
'sha512_init';
19 function sha512update(var md
:tsha512context
; const buf
; buflen
:LongWord
):longint;
20 cdecl; external name
'sha512_update';
21 function sha512final(var md
:tsha512context
; out digest
:tsha512digest
):longint;
22 cdecl; external name
'sha512_final';