dsa.h | dsa.h | |||
---|---|---|---|---|
skipping to change at line 35 | skipping to change at line 35 | |||
* \f$\mathds{Z}^{*}_p\f$ with order \f$q\f$. The private and public key | * \f$\mathds{Z}^{*}_p\f$ with order \f$q\f$. The private and public key | |||
* values are \f$x\f$ and \f$y\f$ respectively. | * values are \f$x\f$ and \f$y\f$ respectively. | |||
* | * | |||
* \author Bob Deblier <bob.deblier@pandora.be> | * \author Bob Deblier <bob.deblier@pandora.be> | |||
* \ingroup DL_dsa_m | * \ingroup DL_dsa_m | |||
*/ | */ | |||
#ifndef _DSA_H | #ifndef _DSA_H | |||
#define _DSA_H | #define _DSA_H | |||
#include "mpbarrett.h" | #include "dlkp.h" | |||
typedef dldp_p dsaparam; | ||||
typedef dlpk_p dsapub; | ||||
typedef dlkp_p dsakp; | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/*!\fn int dsasign(const mpbarrett* p, const mpbarrett* q, const mpnumber* g, randomGeneratorContext* rgc, const mpnumber* hm, const mpnumber* x, mpnu mber* r, mpnumber* s) | /*!\fn int dsasign(const mpbarrett* p, const mpbarrett* q, const mpnumber* g, randomGeneratorContext* rgc, const mpnumber* hm, const mpnumber* x, mpnu mber* r, mpnumber* s) | |||
* \brief This function performs a raw DSA signature. | * \brief This function performs a raw DSA signature. | |||
* | * | |||
* Signing equations: | * Signing equations: | |||
* | * | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 5 lines changed or added | |||
mpbarrett.h | mpbarrett.h | |||
---|---|---|---|---|
skipping to change at line 51 | skipping to change at line 51 | |||
#endif | #endif | |||
BEECRYPTAPI | BEECRYPTAPI | |||
void mpbzero(mpbarrett*); | void mpbzero(mpbarrett*); | |||
BEECRYPTAPI | BEECRYPTAPI | |||
void mpbinit(mpbarrett*, size_t); | void mpbinit(mpbarrett*, size_t); | |||
BEECRYPTAPI | BEECRYPTAPI | |||
void mpbfree(mpbarrett*); | void mpbfree(mpbarrett*); | |||
BEECRYPTAPI | BEECRYPTAPI | |||
void mpbcopy(mpbarrett*, const mpbarrett*); | void mpbcopy(mpbarrett*, const mpbarrett*); | |||
BEECRYPTAPI | ||||
void mpbwipe(mpbarrett*); | ||||
BEECRYPTAPI | BEECRYPTAPI | |||
void mpbset(mpbarrett*, size_t, const mpw*); | void mpbset(mpbarrett*, size_t, const mpw*); | |||
BEECRYPTAPI | BEECRYPTAPI | |||
void mpbsethex(mpbarrett*, const char*); | void mpbsethex(mpbarrett*, const char*); | |||
BEECRYPTAPI | BEECRYPTAPI | |||
void mpbsubone(const mpbarrett*, mpw*); | void mpbsubone(const mpbarrett*, mpw*); | |||
BEECRYPTAPI | BEECRYPTAPI | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added | |||