#include "system.h"
#include "elgamal.h"
#include "dldp.h"
#include "mp32.h"
#include "debug.h"
Go to the source code of this file.
Functions | |
int | elgv1sign (const mp32barrett *p, const mp32barrett *n, const mp32number *g, randomGeneratorContext *rgc, const mp32number *hm, const mp32number *x, mp32number *r, mp32number *s) |
int | elgv1vrfy (const mp32barrett *p, const mp32barrett *n, const mp32number *g, const mp32number *hm, const mp32number *y, const mp32number *r, const mp32number *s) |
int | elgv3sign (const mp32barrett *p, const mp32barrett *n, const mp32number *g, randomGeneratorContext *rgc, const mp32number *hm, const mp32number *x, mp32number *r, mp32number *s) |
int | elgv3vrfy (const mp32barrett *p, const mp32barrett *n, const mp32number *g, const mp32number *hm, const mp32number *y, const mp32number *r, const mp32number *s) |
This code implements two of the six variants described:
Definition in file elgamal.c.
|
Definition at line 63 of file elgamal.c. References mp32number::data, mp32barrett::modl, mp32add, mp32baddmod_w, mp32bmulmod_w, mp32bpowmod_w, mp32brndinv_w, mp32neg, mp32nfree, mp32nsize, mp32number::size, mp32barrett::size, and uint32. |
|
Definition at line 100 of file elgamal.c. References mp32number::data, mp32barrett::modl, mp32bmulmod_w, mp32bpowmod_w, mp32eq, mp32gex, mp32z, mp32number::size, mp32barrett::size, and uint32. |
|
Definition at line 144 of file elgamal.c. References mp32number::data, mp32baddmod_w, mp32bmulmod_w, mp32bpowmod_w, mp32brnd_w, mp32nfree, mp32nsize, mp32number::size, mp32barrett::size, and uint32. |
|
Definition at line 177 of file elgamal.c. References mp32number::data, mp32barrett::modl, mp32bmulmod_w, mp32bpowmod_w, mp32eq, mp32gex, mp32z, mp32number::size, mp32barrett::size, and uint32. |