summaryrefslogtreecommitdiff
path: root/tier0/DESKey/ALGO.H
blob: b0d62014c394b19f822b6fef09ed2abeb17322c7 (plain) (blame)
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
#ifdef __cplusplus
extern "C"
 {
#endif

#ifndef APIENTRY
#define APIENTRY FAR PASCAL
#endif

void APIENTRY DK2SetupAlgorithmString ( LPSTR String, WORD Cmd );

void APIENTRY DK2SetMaximumIterations( WORD MaxIter );

void APIENTRY DK2Sub_ReadRandomNumbers( WORD    DataReg,
                                        LPSTR   Id, 
                                        LPSTR   PKey,
                                        WORD    Seed,
                                        LPSTR   Buffer );

void APIENTRY DK2Sub_ReadMemory( WORD  DataReg,
                                 LPSTR Id, 
                                 LPSTR PKey,
                                 WORD  Seed,
                                 WORD  Address,
                                 LPSTR Buffer );

void APIENTRY DK2Sub_WriteMemory( WORD    DataReg,
                                  LPSTR   Id, 
                                  LPSTR   PKey,
                                  WORD    Seed,
                                  WORD    Address,
                                  WORD    SecretCounter,
                                  LPSTR   Password,
                                  LPSTR   DUSN,
                                  LPSTR   Buffer );

void APIENTRY DK2Sub_ReadDownCounter( WORD     DataReg,
                                      LPSTR    Id, 
                                      LPSTR    PKey,
                                      LPDWORD  DownCounter );

void APIENTRY DK2Sub_SubtractDownCounter( WORD  DataReg,
                                          LPSTR   Id, 
                                          LPSTR   PKey,
                                          DWORD   SubValue,
                                          LPDWORD DownCounter );

void APIENTRY DK2Sub_RestartDownCounter( WORD   DataReg,
                                         LPSTR  Id, 
                                         LPSTR  PKey,
                                         WORD   SecretCounter,
                                         LPSTR  Password,
                                         LPSTR  DUSN,
                                         DWORD  DownCounter );

void APIENTRY DK2Sub_AccessNormalCommands( WORD   DataReg,
                                           LPSTR  Id, 
                                           LPSTR  PKey,
                                           WORD   Disable );

void APIENTRY DK2Algorithm( WORD Iterations, 
                            LPSTR AlgoStr, 
                            LPSTR PrivKey );

#ifdef __cplusplus
 }
#endif