X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/29e444ad666fee86b3056facafdc1f74c0afe761..02dfbd5b7af7816959dbd39c1fe628451204e35f:/pgen.h diff --git a/pgen.h b/pgen.h index 52e62bb..a80fefa 100644 --- a/pgen.h +++ b/pgen.h @@ -204,45 +204,6 @@ extern pgen_proc pgen_simulstep; extern pgen_proc pgen_simultest; -/*----- Safe prime functions ----------------------------------------------*/ - -/* --- @pgen_safestep@ --- * - * - * Steps two numbers, %$q$% and %$p = 2q + 1$%, such that neither has any - * small factors. %$p$% is put in the event block. - */ - -typedef struct pgen_safestepctx { - pfilt q, p; -} pgen_safestepctx; - -extern pgen_proc pgen_safestep; - -/* --- @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 pgen_proc pgen_safejump; - -/* --- @pgen_safetest@ --- * - * - * Applies Rabin-Miller tests to %$p$% and %$(p - 1)/2$%. - */ - -typedef struct pgen_safetestctx { - pgen_safestepctx c; - rabin q, p; -} pgen_safetestctx; - -extern pgen_proc pgen_safetest; - /*----- Miscellaneous steppers and testers --------------------------------*/ typedef struct pgen_gcdstepctx {