00001
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef _ELGAMAL_H
00029 #define _ELGAMAL_H
00030
00031 #include "mp32barrett.h"
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00039 BEECRYPTAPI
00040 int elgv1sign(const mp32barrett* p, const mp32barrett* n, const mp32number* g, randomGeneratorContext*, const mp32number* hm, const mp32number* x, mp32number* r, mp32number* s)
00041 ;
00042
00045 BEECRYPTAPI
00046 int elgv3sign(const mp32barrett* p, const mp32barrett* n, const mp32number* g, randomGeneratorContext*, const mp32number* hm, const mp32number* x, mp32number* r, mp32number* s)
00047 ;
00048
00051 BEECRYPTAPI
00052 int elgv1vrfy(const mp32barrett* p, const mp32barrett* n, const mp32number* g, const mp32number* hm, const mp32number* y, const mp32number* r, const mp32number* s)
00053 ;
00054
00057 BEECRYPTAPI
00058 int elgv3vrfy(const mp32barrett* p, const mp32barrett* n, const mp32number* g, const mp32number* hm, const mp32number* y, const mp32number* r, const mp32number* s)
00059 ;
00060
00061 #ifdef __cplusplus
00062 }
00063 #endif
00064
00065 #endif