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

# beecrypt/dlkp.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 _DLKP_H
    00031 #define _DLKP_H
    00032
    00033 #include "dlpk.h"
    00034
    00037 typedef struct
    00038 {
    00039         dldp_p param;
    00040         mp32number y;
    00041         mp32number x;
    00042 } dlkp_p;
    00043
    00044 #ifdef __cplusplus
    00045 extern "C" {
    00046 #endif
    00047
    00050 BEECRYPTAPI /*@unused@*/
    00051 int dlkp_pPair(dlkp_p* kp, randomGeneratorContext* rgc, const dldp_p* param)
    00052         /*@modifies kp, rgc */;
    00053
    00056 BEECRYPTAPI /*@unused@*/
    00057 int dlkp_pInit(dlkp_p* kp)
    00058         /*@modifies kp */;
    00059
    00062 BEECRYPTAPI /*@unused@*/
    00063 int dlkp_pFree(dlkp_p* kp)
    00064         /*@modifies kp */;
    00065
    00068 BEECRYPTAPI /*@unused@*/
    00069 int dlkp_pCopy(dlkp_p* dst, const dlkp_p* src)
    00070         /*@modifies dst */;
    00071
    00072 #ifdef __cplusplus
    00073 }
    00074 #endif
    00075
    00076 #endif