/* -*-c-*-
*
- * $Id: gkcdsa.c,v 1.2 2004/04/08 01:36:15 mdw Exp $
+ * $Id$
*
* Generalized version of KCDSA
*
/*----- Main code ---------------------------------------------------------*/
-/* --- @gdsa_beginhash@ --- *
+/* --- @gkcdsa_beginhash@ --- *
*
- * Arguments: @const gdsa *c@ = pointer to the context structure
+ * Arguments: @const gkcdsa *c@ = pointer to the context structure
*
* Returns: A hashing context for you to hash the message.
*
* isn't finalized.
*/
-void gkcdsa_endhash(gkcdsa *c, ghash *h) { ; }
+void gkcdsa_endhash(const gkcdsa *c, ghash *h) { ; }
/* --- @hashge@ --- *
*
new_k:
k = mprand_range(k, g->r, c->r, 0);
have_k:
- if (MP_ISZERO(k)) goto new_k;
+ if (MP_ZEROP(k)) goto new_k;
G_EXP(g, z, g->g, k);
if (!s->r) s->r = xmalloc(hsz);
h = hashge(g, c->h, z); GH_DONE(h, s->r);