u/mdw/catacomb
23 years agoChange manpage style slightly.
mdw [Wed, 21 Feb 2001 20:02:29 +0000 (20:02 +0000)]
Change manpage style slightly.

23 years agoTest for off-by-one bug.
mdw [Sat, 3 Feb 2001 16:10:27 +0000 (16:10 +0000)]
Test for off-by-one bug.

23 years agoNew testcases to ensure correct seeds are returned.
mdw [Sat, 3 Feb 2001 16:10:12 +0000 (16:10 +0000)]
New testcases to ensure correct seeds are returned.

23 years agoNew files added.
mdw [Sat, 3 Feb 2001 16:09:41 +0000 (16:09 +0000)]
New files added.

23 years agoAllow the caller to fetch the parameter generation seed and counter.
mdw [Sat, 3 Feb 2001 16:09:29 +0000 (16:09 +0000)]
Allow the caller to fetch the parameter generation seed and counter.

23 years agoGive generic random objects separate namespaces for their supported misc
mdw [Sat, 3 Feb 2001 16:08:56 +0000 (16:08 +0000)]
Give generic random objects separate namespaces for their supported misc
ops.  Add operations for reading the current seed value.

23 years agoAdd consistency checking for public keys.
mdw [Sat, 3 Feb 2001 16:08:24 +0000 (16:08 +0000)]
Add consistency checking for public keys.

23 years agoGive generic random objects separate namespaces for their supported misc
mdw [Sat, 3 Feb 2001 16:07:33 +0000 (16:07 +0000)]
Give generic random objects separate namespaces for their supported misc
ops.

23 years agoDon't set a handler for @SIGINT@ if it's ignored at startup. Add some
mdw [Sat, 3 Feb 2001 16:06:44 +0000 (16:06 +0000)]
Don't set a handler for @SIGINT@ if it's ignored at startup.  Add some
error handling for the @select@ loop.

23 years agoNow @mp_drop@ checks its argument is non-NULL before attempting to free
mdw [Sat, 3 Feb 2001 16:05:41 +0000 (16:05 +0000)]
Now @mp_drop@ checks its argument is non-NULL before attempting to free
it.  Note that the macro version @MP_DROP@ doesn't do this.

23 years agoMake flags be unsigned. Improve the write algorithm: recurse until the
mdw [Sat, 3 Feb 2001 16:05:17 +0000 (16:05 +0000)]
Make flags be unsigned.  Improve the write algorithm: recurse until the
parts are one word long and use single-precision arithmetic from there.
Fix off-by-one bug when breaking the number apart.

23 years agoNow @mp_drop@ checks its argument is non-NULL before attempting to free
mdw [Sat, 3 Feb 2001 12:00:29 +0000 (12:00 +0000)]
Now @mp_drop@ checks its argument is non-NULL before attempting to free
it.  Note that the macro version @MP_DROP@ doesn't do this.

23 years agoDon't use the @pgen@ random number generator for generating primes: it's
mdw [Sat, 3 Feb 2001 11:59:07 +0000 (11:59 +0000)]
Don't use the @pgen@ random number generator for generating primes: it's
only for testing them.  Use a caller-supplied one instead.

23 years agoStore the correct seed information and count for DSA keys now that it's
mdw [Sat, 3 Feb 2001 11:58:22 +0000 (11:58 +0000)]
Store the correct seed information and count for DSA keys now that it's
available.

23 years agoAllow creating keyfiles with no file attached.
mdw [Sat, 3 Feb 2001 11:57:38 +0000 (11:57 +0000)]
Allow creating keyfiles with no file attached.

23 years agoTrack mLib change: symbols no longer need to include a terminating
mdw [Sat, 3 Feb 2001 11:57:00 +0000 (11:57 +0000)]
Track mLib change: symbols no longer need to include a terminating
null.

23 years agoMake flags be unsigned.
mdw [Thu, 25 Jan 2001 22:21:43 +0000 (22:21 +0000)]
Make flags be unsigned.

23 years agoRemove dead code now that the new stepper structure is trustworthy.
mdw [Thu, 25 Jan 2001 21:40:44 +0000 (21:40 +0000)]
Remove dead code now that the new stepper structure is trustworthy.

23 years agoSupport for new SHA variants added.
mdw [Thu, 25 Jan 2001 21:40:14 +0000 (21:40 +0000)]
Support for new SHA variants added.

23 years agoBurn the hash context when it's done with, for paranoia's sake.
mdw [Thu, 25 Jan 2001 21:39:58 +0000 (21:39 +0000)]
Burn the hash context when it's done with, for paranoia's sake.

23 years agoBoring cosmetic stuff.
mdw [Thu, 25 Jan 2001 21:16:20 +0000 (21:16 +0000)]
Boring cosmetic stuff.

23 years agoUse mLib exported tuning parameters for hashtable.
mdw [Sat, 20 Jan 2001 11:56:48 +0000 (11:56 +0000)]
Use mLib exported tuning parameters for hashtable.

23 years agoMake flags be macros rather than enumerations, to ensure that they're
mdw [Wed, 6 Dec 2000 20:33:27 +0000 (20:33 +0000)]
Make flags be macros rather than enumerations, to ensure that they're
unsigned.

23 years agoFix round count for weird key sizes.
mdw [Wed, 6 Dec 2000 20:32:59 +0000 (20:32 +0000)]
Fix round count for weird key sizes.

23 years agoReduce binary bytes (to allow marker bits to be ignored). Fix error
mdw [Wed, 6 Dec 2000 20:32:42 +0000 (20:32 +0000)]
Reduce binary bytes (to allow marker bits to be ignored).  Fix error
message string a bit.  Allow leading `+' signs.

23 years agoAdd assertion to prevent crapness.
mdw [Wed, 6 Dec 2000 20:31:33 +0000 (20:31 +0000)]
Add assertion to prevent crapness.

23 years agoSimplify uniform range transformation.
mdw [Wed, 6 Dec 2000 20:31:06 +0000 (20:31 +0000)]
Simplify uniform range transformation.

23 years agoChange secret sharing interface: present the secret at share
mdw [Wed, 6 Dec 2000 20:30:10 +0000 (20:30 +0000)]
Change secret sharing interface: present the secret at share
construction time.

23 years agoFix buggy HMAC test vectors.
mdw [Sun, 15 Oct 2000 19:09:32 +0000 (19:09 +0000)]
Fix buggy HMAC test vectors.

23 years agoSupport HMAC mode for hash functions which need to store more state than
mdw [Sun, 15 Oct 2000 19:09:20 +0000 (19:09 +0000)]
Support HMAC mode for hash functions which need to store more state than
the hash output size.

23 years agoNew SHA variants with longer outputs.
mdw [Sun, 15 Oct 2000 17:49:00 +0000 (17:49 +0000)]
New SHA variants with longer outputs.

23 years agoMore hash modes to be ignored.
mdw [Sun, 15 Oct 2000 17:48:39 +0000 (17:48 +0000)]
More hash modes to be ignored.

23 years agoFix some compile errors.
mdw [Sat, 14 Oct 2000 17:13:19 +0000 (17:13 +0000)]
Fix some compile errors.

23 years agoTest vectors for binary poly arithmetic.
mdw [Sun, 8 Oct 2000 16:01:48 +0000 (16:01 +0000)]
Test vectors for binary poly arithmetic.

23 years agoPrototypes of various bits of code.
mdw [Sun, 8 Oct 2000 16:01:37 +0000 (16:01 +0000)]
Prototypes of various bits of code.

23 years agoAdd binary poly arithmetic. Tidy table generation stuff. Distribute
mdw [Sun, 8 Oct 2000 16:01:26 +0000 (16:01 +0000)]
Add binary poly arithmetic.  Tidy table generation stuff.  Distribute
calc prototypes.

23 years agoVersion bump.
mdw [Sun, 8 Oct 2000 16:00:54 +0000 (16:00 +0000)]
Version bump.

23 years agoFix compiler warning.
mdw [Sun, 8 Oct 2000 16:00:32 +0000 (16:00 +0000)]
Fix compiler warning.

23 years agoFirst glimmerings of binary polynomial arithmetic.
mdw [Sun, 8 Oct 2000 15:49:37 +0000 (15:49 +0000)]
First glimmerings of binary polynomial arithmetic.

23 years agoRemove failed kludge for shutting up a warning.
mdw [Sun, 8 Oct 2000 15:49:18 +0000 (15:49 +0000)]
Remove failed kludge for shutting up a warning.

23 years agoUpdate comments now that AES has been chosen.
mdw [Sun, 8 Oct 2000 15:48:58 +0000 (15:48 +0000)]
Update comments now that AES has been chosen.

23 years agoRename Karatsuba constants now that we have @gfx_kmul@ too.
mdw [Sun, 8 Oct 2000 15:48:35 +0000 (15:48 +0000)]
Rename Karatsuba constants now that we have @gfx_kmul@ too.

23 years agoRenamed to `karatsuba.h'.
mdw [Sun, 8 Oct 2000 15:47:57 +0000 (15:47 +0000)]
Renamed to `karatsuba.h'.

23 years agoRename from `mpx-kmac.h', and add macros for @gfx_kmul@.
mdw [Sun, 8 Oct 2000 15:47:47 +0000 (15:47 +0000)]
Rename from `mpx-kmac.h', and add macros for @gfx_kmul@.

23 years agoFix tests for different GCD algorithm.
mdw [Sun, 8 Oct 2000 12:17:06 +0000 (12:17 +0000)]
Fix tests for different GCD algorithm.

23 years agoAdd negative number tests.
mdw [Sun, 8 Oct 2000 12:16:54 +0000 (12:16 +0000)]
Add negative number tests.

23 years agoUse @MP_EQ@ instead of @MP_CMP@.
mdw [Sun, 8 Oct 2000 12:16:17 +0000 (12:16 +0000)]
Use @MP_EQ@ instead of @MP_CMP@.

23 years agoRemove vestiges of @primorial@.
mdw [Sun, 8 Oct 2000 12:16:07 +0000 (12:16 +0000)]
Remove vestiges of @primorial@.

23 years agoUse @MP_EQ@ instead of @MP_CMP@. Remove vestages of @primorial@.
mdw [Sun, 8 Oct 2000 12:12:47 +0000 (12:12 +0000)]
Use @MP_EQ@ instead of @MP_CMP@.  Remove vestages of @primorial@.

23 years agoImprove @const@-correctness.
mdw [Sun, 8 Oct 2000 12:12:23 +0000 (12:12 +0000)]
Improve @const@-correctness.

23 years agoShut up some warnings.
mdw [Sun, 8 Oct 2000 12:12:09 +0000 (12:12 +0000)]
Shut up some warnings.

23 years agoUse @mpx_ueq@ instead of @MPX_UCMP@.
mdw [Sun, 8 Oct 2000 12:11:01 +0000 (12:11 +0000)]
Use @mpx_ueq@ instead of @MPX_UCMP@.

23 years agoMake table have external linkage to bodge around deficiency in C. The
mdw [Sun, 8 Oct 2000 12:10:32 +0000 (12:10 +0000)]
Make table have external linkage to bodge around deficiency in C.  The
problem is that @static gen generators[];@ is considered to be a
`tentative definition', and therefore mustn't have incomplete type,
which it obviously has.

23 years agoEscape literal newlines in output string.
mdw [Sun, 8 Oct 2000 12:08:10 +0000 (12:08 +0000)]
Escape literal newlines in output string.

23 years agoRemove spurious comma in enum.
mdw [Sun, 8 Oct 2000 12:07:18 +0000 (12:07 +0000)]
Remove spurious comma in enum.

23 years agoDon't do arithmetic on @void *@ pointers.
mdw [Sun, 8 Oct 2000 12:07:04 +0000 (12:07 +0000)]
Don't do arithmetic on @void *@ pointers.

23 years agoChange size passed to socket function to be a @size_t@. Insert missing
mdw [Sun, 8 Oct 2000 12:06:46 +0000 (12:06 +0000)]
Change size passed to socket function to be a @size_t@.  Insert missing
type name for flag declaration.

23 years agoProvide @mpx_ueq@ for rapidly testing equality of two integers.
mdw [Sun, 8 Oct 2000 12:06:12 +0000 (12:06 +0000)]
Provide @mpx_ueq@ for rapidly testing equality of two integers.

23 years agoMake later versions of GCC shut up about @long long@.
mdw [Sun, 8 Oct 2000 12:05:24 +0000 (12:05 +0000)]
Make later versions of GCC shut up about @long long@.

23 years ago(MP_DOFPRINTFR): cope with null pointers.
mdw [Sun, 8 Oct 2000 12:04:58 +0000 (12:04 +0000)]
(MP_DOFPRINTFR): cope with null pointers.

23 years ago(mpmont_reduce, mpmont_mul): Cope with negative numbers.
mdw [Sun, 8 Oct 2000 12:04:27 +0000 (12:04 +0000)]
(mpmont_reduce, mpmont_mul): Cope with negative numbers.

23 years agoRemove spurious semicolon.
mdw [Sun, 8 Oct 2000 12:04:01 +0000 (12:04 +0000)]
Remove spurious semicolon.

23 years ago(mpbarrett_reduce): Cope with negative numbers.
mdw [Sun, 8 Oct 2000 12:03:44 +0000 (12:03 +0000)]
(mpbarrett_reduce): Cope with negative numbers.

23 years agoProvide @mp_eq@ and @MP_EQ@ for rapidly testing equality of two
mdw [Sun, 8 Oct 2000 12:03:16 +0000 (12:03 +0000)]
Provide @mp_eq@ and @MP_EQ@ for rapidly testing equality of two
integers.

23 years agoUse Euclid's algorithm rather than the binary one.
mdw [Sun, 8 Oct 2000 12:02:41 +0000 (12:02 +0000)]
Use Euclid's algorithm rather than the binary one.

23 years agoUse @MP_EQ@ instead of @MP_CMP@.
mdw [Sun, 8 Oct 2000 12:02:21 +0000 (12:02 +0000)]
Use @MP_EQ@ instead of @MP_CMP@.

23 years agoReinstate the `-pedantic' option.
mdw [Sun, 8 Oct 2000 12:01:28 +0000 (12:01 +0000)]
Reinstate the `-pedantic' option.

23 years agoNew stepper interface for constructing Lim-Lee primes.
mdw [Fri, 18 Aug 2000 19:16:51 +0000 (19:16 +0000)]
New stepper interface for constructing Lim-Lee primes.

23 years agoNew event handler for showing in detail sub-prime generation.
mdw [Fri, 18 Aug 2000 19:16:12 +0000 (19:16 +0000)]
New event handler for showing in detail sub-prime generation.

23 years agoAdd some more test vectors.
mdw [Wed, 16 Aug 2000 17:57:14 +0000 (17:57 +0000)]
Add some more test vectors.

23 years ago(more): Remove spurious function.
mdw [Wed, 16 Aug 2000 17:56:59 +0000 (17:56 +0000)]
(more): Remove spurious function.

23 years agoSet up the dependencies on primetab.[ch] and mptypes.h properly.
mdw [Tue, 15 Aug 2000 21:46:20 +0000 (21:46 +0000)]
Set up the dependencies on primetab.[ch] and mptypes.h properly.
There's some m4 hacking, but it's worth it not to have to recompile all
the cipher modes.

23 years agoNew library configuration stuff from `common'.
mdw [Tue, 15 Aug 2000 21:45:25 +0000 (21:45 +0000)]
New library configuration stuff from `common'.

23 years agoUse the new trial division equipment in pfilt. This gives a 10%
mdw [Tue, 15 Aug 2000 21:45:05 +0000 (21:45 +0000)]
Use the new trial division equipment in pfilt.  This gives a 10%
performance improvement in dsa-gen.t.

23 years ago(pfilt_smallfactor): New function for doing trial division the hard
mdw [Tue, 15 Aug 2000 21:44:27 +0000 (21:44 +0000)]
(pfilt_smallfactor): New function for doing trial division the hard
way.

(pfilt_create): Use @mpx_udivn@ for computing residues, for improved
performance.

Pull the `small prime' test into a separate function, and do it
properly.

23 years agoUse the small primes type from `genprimes' output. New function for
mdw [Tue, 15 Aug 2000 21:42:56 +0000 (21:42 +0000)]
Use the small primes type from `genprimes' output.  New function for
doing trial division the hard way.

23 years agoCreate a new type for the small primes table elements.
mdw [Tue, 15 Aug 2000 21:41:58 +0000 (21:41 +0000)]
Create a new type for the small primes table elements.

23 years agoBug fix: minimize the right thing.
mdw [Tue, 15 Aug 2000 21:41:09 +0000 (21:41 +0000)]
Bug fix: minimize the right thing.

23 years agoMinor formatting change in listing attributes.
mdw [Tue, 15 Aug 2000 21:40:49 +0000 (21:40 +0000)]
Minor formatting change in listing attributes.

23 years agoNew restartable interface to Maurer testing.
mdw [Fri, 11 Aug 2000 21:34:59 +0000 (21:34 +0000)]
New restartable interface to Maurer testing.

23 years agoChange to use the new thresholds given in the draft FIPS140-2.
mdw [Fri, 11 Aug 2000 21:34:34 +0000 (21:34 +0000)]
Change to use the new thresholds given in the draft FIPS140-2.

23 years ago(mkphrase): New program for generating random passphrases with measured
mdw [Sun, 6 Aug 2000 10:50:55 +0000 (10:50 +0000)]
(mkphrase): New program for generating random passphrases with measured
strength.

23 years agoAdd a timer and a discard option.
mdw [Fri, 4 Aug 2000 23:24:15 +0000 (23:24 +0000)]
Add a timer and a discard option.

23 years agoAdd a pile of new test vectors.
mdw [Fri, 4 Aug 2000 23:24:01 +0000 (23:24 +0000)]
Add a pile of new test vectors.

23 years agoVarious <ctype.h> fixes.
mdw [Fri, 4 Aug 2000 23:23:44 +0000 (23:23 +0000)]
Various <ctype.h> fixes.

23 years agoFix comment describing the field in which inversion is done.
mdw [Fri, 4 Aug 2000 18:03:19 +0000 (18:03 +0000)]
Fix comment describing the field in which inversion is done.

23 years agoAdd some more vectors, and a whinge about how Skipjack test vectors are.
mdw [Tue, 1 Aug 2000 00:29:15 +0000 (00:29 +0000)]
Add some more vectors, and a whinge about how Skipjack test vectors are.

23 years agoPerformance improvement: read keys in as 32-bit words and deal them out
mdw [Tue, 1 Aug 2000 00:28:34 +0000 (00:28 +0000)]
Performance improvement: read keys in as 32-bit words and deal them out
byte-by-byte.

23 years agoFix error in help message about Maurer test syntax.
mdw [Sat, 29 Jul 2000 22:05:47 +0000 (22:05 +0000)]
Fix error in help message about Maurer test syntax.

23 years agoMiscellaneous tidyings:
mdw [Sat, 29 Jul 2000 22:05:22 +0000 (22:05 +0000)]
Miscellaneous tidyings:

  * Change the timeout to something more appropriate for real use.

  * Check assumptions about object types when binding the socket.  In
    particular, don't zap the socket if it's really something else.

  * In @p_request@, return a failure if the shell command returned
    nonzero.  Fix a bug in @p_get@ which incorrectly passes on a success
    code when this happens.

  * Dispose of the locked memory in client mode to avoid being
    antisocial.

  * Also in client mode, don't report closure from the server if we're
    running noninteractively.

  * Insert a missing option letter into the usage string.

  * Change to the root directory after forking in daemon mode.

23 years agoNew manpage for the Catacomb pixie.
mdw [Sat, 29 Jul 2000 21:58:28 +0000 (21:58 +0000)]
New manpage for the Catacomb pixie.

23 years ago(l_destroy): New function for destroying locked memory blocks.
mdw [Sat, 29 Jul 2000 21:58:15 +0000 (21:58 +0000)]
(l_destroy): New function for destroying locked memory blocks.

23 years agoManual page for the new `hashsum' program.
mdw [Sat, 29 Jul 2000 21:57:55 +0000 (21:57 +0000)]
Manual page for the new `hashsum' program.

23 years agoVersion bump.
mdw [Sat, 29 Jul 2000 21:57:44 +0000 (21:57 +0000)]
Version bump.

23 years agoMake sure the pixie is installed setuid-root (workaround for an Automake
mdw [Sat, 29 Jul 2000 21:55:32 +0000 (21:55 +0000)]
Make sure the pixie is installed setuid-root (workaround for an Automake
bug).  Install new manpages.

23 years ago(mpmont_expr): Use sliding window exponentiation, with a drop-through
mdw [Sat, 29 Jul 2000 17:05:43 +0000 (17:05 +0000)]
(mpmont_expr): Use sliding window exponentiation, with a drop-through
for small exponents to use a simple left-to-right bitwise routine.  This
can reduce modexp times by up to a quarter.

23 years agoChange to use left-to-right bitwise exponentiation. This will improve
mdw [Sat, 29 Jul 2000 17:04:33 +0000 (17:04 +0000)]
Change to use left-to-right bitwise exponentiation.  This will improve
performance when the base is small.

23 years agoRemove useless header `mpscan.h'.
mdw [Sat, 29 Jul 2000 17:04:02 +0000 (17:04 +0000)]
Remove useless header `mpscan.h'.

23 years agoAdd support for left-to-right bitscanning, for use in modular
mdw [Sat, 29 Jul 2000 17:03:31 +0000 (17:03 +0000)]
Add support for left-to-right bitscanning, for use in modular
exponentiation.

23 years agoDescribe the Lim-Lee prime stuff.
mdw [Sat, 29 Jul 2000 17:02:58 +0000 (17:02 +0000)]
Describe the Lim-Lee prime stuff.