Overhaul of key management (again).
[u/mdw/catacomb] / pgen.h
diff --git a/pgen.h b/pgen.h
index 9ce4e86..05d0a2c 100644 (file)
--- a/pgen.h
+++ b/pgen.h
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: pgen.h,v 1.4 1999/12/22 16:01:11 mdw Exp $
+ * $Id: pgen.h,v 1.5 2000/02/12 18:21:03 mdw Exp $
  *
  * Prime generation glue
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: pgen.h,v $
+ * Revision 1.5  2000/02/12 18:21:03  mdw
+ * Overhaul of key management (again).
+ *
  * Revision 1.4  1999/12/22 16:01:11  mdw
  * Same file, completely different code.  Main interface for new prime-
  * search system.
@@ -191,6 +194,19 @@ typedef struct pgen_safestepctx {
 
 extern int pgen_safestep(int /*rq*/, pgen_event */*ev*/, void */*p*/);
 
+/* --- @pgen_safejump@ --- *
+ *
+ * Jumps two numbers, %$q$% and %$p = 2q + 1$% such that neither has any
+ * small factors.
+ */
+
+typedef struct pgen_safejumpctx {
+  pfilt q, jq;
+  pfilt p, jp;
+} pgen_safejumpctx;
+
+extern int pgen_safejump(int /*rq*/, pgen_event */*ev*/, void */*p*/);
+
 /* --- @pgen_safetest@ --- *
  *
  * Applies Rabin-Miller tests to %$p$% and %$(p - 1)/2$%.