/* -*-c-*-
*
- * $Id: rho.h,v 1.1 2000/07/09 21:32:30 mdw Exp $
+ * $Id: rho.h,v 1.3 2004/04/08 01:36:15 mdw Exp $
*
* Pollard's rho algorithm for discrete logs
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: rho.h,v $
- * Revision 1.1 2000/07/09 21:32:30 mdw
- * Pollard's rho algorithm for computing discrete logs.
- *
- */
-
#ifndef CATACOMB_RHO_H
#define CATACOMB_RHO_H
/* --- The Pollard's rho context structure --- */
typedef struct rho_ctx {
- rho_ops *ops; /* Group operations table */
+ const rho_ops *ops; /* Group operations table */
void *c; /* Context for group operations */
void *g, *a; /* Generator and argument for log */
mp *n; /* Cyclic group order */