projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Miscellaneous constification.
[u/mdw/catacomb]
/
rho.c
diff --git
a/rho.c
b/rho.c
index
aae4951
..
57754d3
100644
(file)
--- a/
rho.c
+++ b/
rho.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: rho.c,v 1.
3 2001/06/16 12:56:38
mdw Exp $
+ * $Id: rho.c,v 1.
4 2004/04/02 01:03:49
mdw Exp $
*
* Pollard's rho algorithm for discrete logs
*
*
* Pollard's rho algorithm for discrete logs
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: rho.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: rho.c,v $
+ * Revision 1.4 2004/04/02 01:03:49 mdw
+ * Miscellaneous constification.
+ *
* Revision 1.3 2001/06/16 12:56:38 mdw
* Fixes for interface change to @mpmont_expr@ and @mpmont_mexpr@.
*
* Revision 1.3 2001/06/16 12:56:38 mdw
* Fixes for interface change to @mpmont_expr@ and @mpmont_mexpr@.
*
@@
-215,7
+218,7
@@
static void prime_drop(void *x)
MP_DROP(*(mp **)x);
}
MP_DROP(*(mp **)x);
}
-static rho_ops prime_ops = {
+static
const
rho_ops prime_ops = {
prime_sqr, prime_mul, prime_eq, prime_split, prime_drop
};
prime_sqr, prime_mul, prime_eq, prime_split, prime_drop
};