00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00026 #ifndef _RSAKP_H
00027 #define _RSAKP_H
00028
00029 #include "beecrypt/rsapk.h"
00030
00034 #ifdef __cplusplus
00035 struct BEECRYPTAPI rsakp
00036 #else
00037 struct _rsakp
00038 #endif
00039 {
00045 mpbarrett n;
00049 mpnumber e;
00053 mpnumber d;
00057 mpbarrett p;
00061 mpbarrett q;
00066 mpnumber dp;
00071 mpnumber dq;
00076 mpnumber qi;
00077 #ifdef __cplusplus
00078 rsakp();
00079 rsakp(const rsakp&);
00080 ~rsakp();
00081 #endif
00082 };
00083
00084 #ifndef __cplusplus
00085 typedef struct _rsakp rsakp;
00086 #endif
00087
00088 #ifdef __cplusplus
00089 extern "C" {
00090 #endif
00091
00092 BEECRYPTAPI
00093 int rsakpMake(rsakp*, randomGeneratorContext*, size_t);
00094 BEECRYPTAPI
00095 int rsakpInit(rsakp*);
00096 BEECRYPTAPI
00097 int rsakpFree(rsakp*);
00098 BEECRYPTAPI
00099 int rsakpCopy(rsakp*, const rsakp*);
00100
00101 #ifdef __cplusplus
00102 }
00103 #endif
00104
00105 #endif