-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDh.pas
More file actions
103 lines (66 loc) · 3.57 KB
/
Dh.pas
File metadata and controls
103 lines (66 loc) · 3.57 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
unit Dh;
interface
type
HCkDh = Pointer;
HCkString = Pointer;
function CkDh_Create: HCkDh; stdcall;
procedure CkDh_Dispose(handle: HCkDh); stdcall;
procedure CkDh_getDebugLogFilePath(objHandle: HCkDh; outPropVal: HCkString); stdcall;
procedure CkDh_putDebugLogFilePath(objHandle: HCkDh; newPropVal: PWideChar); stdcall;
function CkDh__debugLogFilePath(objHandle: HCkDh): PWideChar; stdcall;
function CkDh_getG(objHandle: HCkDh): Integer; stdcall;
procedure CkDh_getLastErrorHtml(objHandle: HCkDh; outPropVal: HCkString); stdcall;
function CkDh__lastErrorHtml(objHandle: HCkDh): PWideChar; stdcall;
procedure CkDh_getLastErrorText(objHandle: HCkDh; outPropVal: HCkString); stdcall;
function CkDh__lastErrorText(objHandle: HCkDh): PWideChar; stdcall;
procedure CkDh_getLastErrorXml(objHandle: HCkDh; outPropVal: HCkString); stdcall;
function CkDh__lastErrorXml(objHandle: HCkDh): PWideChar; stdcall;
function CkDh_getLastMethodSuccess(objHandle: HCkDh): wordbool; stdcall;
procedure CkDh_putLastMethodSuccess(objHandle: HCkDh; newPropVal: wordbool); stdcall;
procedure CkDh_getP(objHandle: HCkDh; outPropVal: HCkString); stdcall;
function CkDh__p(objHandle: HCkDh): PWideChar; stdcall;
function CkDh_getVerboseLogging(objHandle: HCkDh): wordbool; stdcall;
procedure CkDh_putVerboseLogging(objHandle: HCkDh; newPropVal: wordbool); stdcall;
procedure CkDh_getVersion(objHandle: HCkDh; outPropVal: HCkString); stdcall;
function CkDh__version(objHandle: HCkDh): PWideChar; stdcall;
function CkDh_CreateE(objHandle: HCkDh; numBits: Integer; outStr: HCkString): wordbool; stdcall;
function CkDh__createE(objHandle: HCkDh; numBits: Integer): PWideChar; stdcall;
function CkDh_FindK(objHandle: HCkDh; E: PWideChar; outStr: HCkString): wordbool; stdcall;
function CkDh__findK(objHandle: HCkDh; E: PWideChar): PWideChar; stdcall;
function CkDh_GenPG(objHandle: HCkDh; numBits: Integer; G: Integer): wordbool; stdcall;
function CkDh_SaveLastError(objHandle: HCkDh; path: PWideChar): wordbool; stdcall;
function CkDh_SetPG(objHandle: HCkDh; p: PWideChar; g: Integer): wordbool; stdcall;
function CkDh_UnlockComponent(objHandle: HCkDh; unlockCode: PWideChar): wordbool; stdcall;
procedure CkDh_UseKnownPrime(objHandle: HCkDh; index: Integer); stdcall;
implementation
{$Include chilkatDllPath.inc}
function CkDh_Create; external DLLName;
procedure CkDh_Dispose; external DLLName;
procedure CkDh_getDebugLogFilePath; external DLLName;
procedure CkDh_putDebugLogFilePath; external DLLName;
function CkDh__debugLogFilePath; external DLLName;
function CkDh_getG; external DLLName;
procedure CkDh_getLastErrorHtml; external DLLName;
function CkDh__lastErrorHtml; external DLLName;
procedure CkDh_getLastErrorText; external DLLName;
function CkDh__lastErrorText; external DLLName;
procedure CkDh_getLastErrorXml; external DLLName;
function CkDh__lastErrorXml; external DLLName;
function CkDh_getLastMethodSuccess; external DLLName;
procedure CkDh_putLastMethodSuccess; external DLLName;
procedure CkDh_getP; external DLLName;
function CkDh__p; external DLLName;
function CkDh_getVerboseLogging; external DLLName;
procedure CkDh_putVerboseLogging; external DLLName;
procedure CkDh_getVersion; external DLLName;
function CkDh__version; external DLLName;
function CkDh_CreateE; external DLLName;
function CkDh__createE; external DLLName;
function CkDh_FindK; external DLLName;
function CkDh__findK; external DLLName;
function CkDh_GenPG; external DLLName;
function CkDh_SaveLastError; external DLLName;
function CkDh_SetPG; external DLLName;
function CkDh_UnlockComponent; external DLLName;
procedure CkDh_UseKnownPrime; external DLLName;
end.