• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

include/beecrypt/rsakp.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2000, 2001, 2002 X-Way Rights BV
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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

Generated on Sun Jan 23 2011 for BeeCrypt by  doxygen 1.7.1