Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

beecrypt/rsakp.h

Go to the documentation of this file.
00001 
00007 /*
00008  * <conformance statement for IEEE P1363 needed here>
00009  *
00010  * Copyright (c) 2000, 2001 Virtual Unlimited B.V.
00011  *
00012  * Author: Bob Deblier <bob@virtualunlimited.com>
00013  *
00014  * This library is free software; you can redistribute it and/or
00015  * modify it under the terms of the GNU Lesser General Public
00016  * License as published by the Free Software Foundation; either
00017  * version 2.1 of the License, or (at your option) any later version.
00018  *
00019  * This library is distributed in the hope that it will be useful,
00020  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00022  * Lesser General Public License for more details.
00023  *
00024  * You should have received a copy of the GNU Lesser General Public
00025  * License along with this library; if not, write to the Free Software
00026  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00027  *
00028  */
00029 
00030 #ifndef _RSAKP_H
00031 #define _RSAKP_H
00032 
00033 #include "rsapk.h"
00034 
00035 typedef struct
00036 {
00037         mp32barrett n;
00038         mp32number e;
00039         mp32number d;
00040         mp32barrett p;
00041         mp32barrett q;
00042         mp32number d1;
00043         mp32number d2;
00044         mp32number c;
00045 } rsakp;
00046 
00047 #ifdef __cplusplus
00048 extern "C" {
00049 #endif
00050 
00053 BEECRYPTAPI /*@unused@*/
00054 int rsakpMake(rsakp* kp, randomGeneratorContext* rgc, int nsize)
00055         /*@modifies kp, rgc @*/;
00056 
00059 BEECRYPTAPI /*@unused@*/
00060 int rsakpInit(rsakp* kp)
00061         /*@modifies kp @*/;
00062 
00065 BEECRYPTAPI /*@unused@*/
00066 int rsakpFree(rsakp* kp)
00067         /*@modifies kp @*/;
00068 
00071 BEECRYPTAPI /*@unused@*/
00072 int rsakpCopy(rsakp* dst, const rsakp* src)
00073         /*@modifies dst @*/;
00074 
00075 #ifdef __cplusplus
00076 }
00077 #endif
00078 
00079 #endif

Generated on Tue Sep 17 15:56:37 2002 for rpm by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002