projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added lots of Rijndael tests.
[u/mdw/catacomb]
/
limlee.h
diff --git
a/limlee.h
b/limlee.h
index
2802585
..
0131cb0
100644
(file)
--- a/
limlee.h
+++ b/
limlee.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: limlee.h,v 1.
3 2000/12/06 20:33:2
7 mdw Exp $
+ * $Id: limlee.h,v 1.
4 2001/02/03 11:59:0
7 mdw Exp $
*
* Generate Lim-Lee primes
*
*
* Generate Lim-Lee primes
*
@@
-30,6
+30,10
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: limlee.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: limlee.h,v $
+ * Revision 1.4 2001/02/03 11:59:07 mdw
+ * Don't use the @pgen@ random number generator for generating primes: it's
+ * only for testing them. Use a caller-supplied one instead.
+ *
* Revision 1.3 2000/12/06 20:33:27 mdw
* Make flags be macros rather than enumerations, to ensure that they're
* unsigned.
* Revision 1.3 2000/12/06 20:33:27 mdw
* Make flags be macros rather than enumerations, to ensure that they're
* unsigned.
@@
-82,6
+86,7
@@
typedef struct limlee_stepctx {
void *pc; /* Context ptr for generator ops */
pgen_proc *iev; /* Event handler for inner @pgen@ */
void *iec; /* Context for inner @pgen@ */
void *pc; /* Context ptr for generator ops */
pgen_proc *iev; /* Event handler for inner @pgen@ */
void *iec; /* Context for inner @pgen@ */
+ grand *r; /* Random number generator */
/* --- Output values --- */
/* --- Output values --- */
@@
-91,7
+96,6
@@
typedef struct limlee_stepctx {
/* --- Maintained internally --- */
octet *c; /* Combination byte-flag vector */
/* --- Maintained internally --- */
octet *c; /* Combination byte-flag vector */
- grand *r; /* Random number generator */
unsigned long seq; /* Sequence number for primes */
size_t poolsz; /* Size of the small-prime pool */
dstr d; /* String for subprime name */
unsigned long seq; /* Sequence number for primes */
size_t poolsz; /* Size of the small-prime pool */
dstr d; /* String for subprime name */