chiark / gitweb /
math/, pub/: Take a more consistent approach to prime-generation failures.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 26 Jun 2016 10:44:33 +0000 (11:44 +0100)
commit285bf989997b8dc94a0783e260fe73787c7ae767
tree9da6f90fb42929fdc0a3e0123ba84a51210c857d
parent1f86efe6525b55705d991cee2ea5c8032b2cfaad
math/, pub/: Take a more consistent approach to prime-generation failures.

  * Don't have `strongprime_setup' assert just because the requested
    size is too small.

  * Fix `strongprime' itself, so that it leaves its destination in a
    predictable state (specifically, it's unmolested) if it fails.

  * Remove the retry loops from `bbs_gen' and `rsa_gen'.  Now,
    downstream failures are consistently propagated.
math/strongprime.c
pub/bbs-gen.c
pub/rsa-gen.c