00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00026 #ifndef _DLKP_H
00027 #define _DLKP_H
00028
00029 #include "beecrypt/dlpk.h"
00030
00033 #ifdef __cplusplus
00034 struct BEECRYPTAPI dlkp_p
00035 #else
00036 struct _dlkp_p
00037 #endif
00038 {
00039 dldp_p param;
00040 mpnumber y;
00041 mpnumber x;
00042
00043 #ifdef __cplusplus
00044 dlkp_p();
00045 dlkp_p(const dlkp_p&);
00046 ~dlkp_p();
00047 #endif
00048 };
00049
00050 #ifndef __cplusplus
00051 typedef struct _dlkp_p dlkp_p;
00052 #endif
00053
00054 #ifdef __cplusplus
00055 extern "C" {
00056 #endif
00057
00058 BEECRYPTAPI
00059 int dlkp_pPair(dlkp_p*, randomGeneratorContext*, const dldp_p*);
00060 BEECRYPTAPI
00061 int dlkp_pInit(dlkp_p*);
00062 BEECRYPTAPI
00063 int dlkp_pFree(dlkp_p*);
00064 BEECRYPTAPI
00065 int dlkp_pCopy(dlkp_p*, const dlkp_p*);
00066
00067 #ifdef __cplusplus
00068 }
00069 #endif
00070
00071 #endif