-
Notifications
You must be signed in to change notification settings - Fork 0
/
SecureString.pas
74 lines (47 loc) · 3.02 KB
/
SecureString.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
unit SecureString;
interface
type
HCkStringBuilder = Pointer;
HCkSecureString = Pointer;
HCkString = Pointer;
function CkSecureString_Create: HCkSecureString; stdcall;
procedure CkSecureString_Dispose(handle: HCkSecureString); stdcall;
function CkSecureString_getLastMethodSuccess(objHandle: HCkSecureString): wordbool; stdcall;
procedure CkSecureString_putLastMethodSuccess(objHandle: HCkSecureString; newPropVal: wordbool); stdcall;
procedure CkSecureString_getMaintainHash(objHandle: HCkSecureString; outPropVal: HCkString); stdcall;
procedure CkSecureString_putMaintainHash(objHandle: HCkSecureString; newPropVal: PWideChar); stdcall;
function CkSecureString__maintainHash(objHandle: HCkSecureString): PWideChar; stdcall;
function CkSecureString_getReadOnly(objHandle: HCkSecureString): wordbool; stdcall;
procedure CkSecureString_putReadOnly(objHandle: HCkSecureString; newPropVal: wordbool); stdcall;
function CkSecureString_Access(objHandle: HCkSecureString; outStr: HCkString): wordbool; stdcall;
function CkSecureString__access(objHandle: HCkSecureString): PWideChar; stdcall;
function CkSecureString_Append(objHandle: HCkSecureString; str: PWideChar): wordbool; stdcall;
function CkSecureString_AppendSb(objHandle: HCkSecureString; sb: HCkStringBuilder): wordbool; stdcall;
function CkSecureString_AppendSecure(objHandle: HCkSecureString; secStr: HCkSecureString): wordbool; stdcall;
function CkSecureString_HashVal(objHandle: HCkSecureString; encoding: PWideChar; outStr: HCkString): wordbool; stdcall;
function CkSecureString__hashVal(objHandle: HCkSecureString; encoding: PWideChar): PWideChar; stdcall;
function CkSecureString_LoadFile(objHandle: HCkSecureString; path: PWideChar; charset: PWideChar): wordbool; stdcall;
function CkSecureString_SecStrEquals(objHandle: HCkSecureString; secStr: HCkSecureString): wordbool; stdcall;
function CkSecureString_VerifyHash(objHandle: HCkSecureString; hashVal: PWideChar; encoding: PWideChar): wordbool; stdcall;
implementation
{$Include chilkatDllPath.inc}
function CkSecureString_Create; external DLLName;
procedure CkSecureString_Dispose; external DLLName;
function CkSecureString_getLastMethodSuccess; external DLLName;
procedure CkSecureString_putLastMethodSuccess; external DLLName;
procedure CkSecureString_getMaintainHash; external DLLName;
procedure CkSecureString_putMaintainHash; external DLLName;
function CkSecureString__maintainHash; external DLLName;
function CkSecureString_getReadOnly; external DLLName;
procedure CkSecureString_putReadOnly; external DLLName;
function CkSecureString_Access; external DLLName;
function CkSecureString__access; external DLLName;
function CkSecureString_Append; external DLLName;
function CkSecureString_AppendSb; external DLLName;
function CkSecureString_AppendSecure; external DLLName;
function CkSecureString_HashVal; external DLLName;
function CkSecureString__hashVal; external DLLName;
function CkSecureString_LoadFile; external DLLName;
function CkSecureString_SecStrEquals; external DLLName;
function CkSecureString_VerifyHash; external DLLName;
end.