chiark / gitweb /
catacomb-python
7 years agotests: More progress... testing
Mark Wooding [Sat, 4 Feb 2006 18:21:44 +0000]
tests: More progress...

  * Fix Makefile so it doesn't stop testing things just because one test
    failed.

  * Fix test module unop to check result against the correct type.

  * Finish testing basic MP functions.

  * Test binary polynomials.

  * Test the magic small-numbers multiplier.

7 years agotests: Small reorganization.
Mark Wooding [Mon, 30 Jan 2006 10:49:13 +0000]
tests: Small reorganization.

  * Test scripts have names matching t-*.py.

  * There's now a module containing handy common code in test.py which
    tests can import.

7 years agotests: Progress...
Mark Wooding [Sun, 29 Jan 2006 14:10:35 +0000]
tests: Progress...

  * Fix the Makefile so that it actually runs all the tests.

  * Slight reorganization of the MP tests; write a bunch more of them.
    Still got a way to go here.

7 years agotests: Start writing unit tests.
Mark Wooding [Sat, 28 Jan 2006 19:17:15 +0000]
tests: Start writing unit tests.

These (and the corresponding bug fixes!) will filter their way out onto
the master as and when.

7 years agogf: Make GF.fromstring consistent with MP.fromstring
Mark Wooding [Sat, 4 Feb 2006 17:53:52 +0000]
gf: Make GF.fromstring consistent with MP.fromstring

The latter raises an exception if given an empty string, and reports
`bad radix' if it is, rather than `out of range'.

7 years agomp: Forbid negative bit numbers in {set,clear,test}bit methods.
Mark Wooding [Sun, 29 Jan 2006 13:55:35 +0000]
mp: Forbid negative bit numbers in {set,clear,test}bit methods.

7 years agoec, group: Bug squashing.
Mark Wooding [Sat, 28 Jan 2006 19:31:46 +0000]
ec, group: Bug squashing.

  * eccurve_pynew had a bad argument format string, which caused a
    segfault.

  * fginfo_pynew also had bogus argument parsing, found in sweep for
    similar bugs.

  * ECCurve.pt hadn't been fixed since curves became types.  Now done.

7 years ago__init__.py: Spruce up a lot.
Mark Wooding [Sat, 28 Jan 2006 19:12:38 +0000]
__init__.py: Spruce up a lot.

  * Divide into sections and add commentary.

  * Add static methods for BBSPriv class (ooops).

7 years agorand: Generators based on symmetric algorithms; fixing
Mark Wooding [Sat, 28 Jan 2006 19:09:57 +0000]
rand: Generators based on symmetric algorithms; fixing

  * Include support for the various generators based on symmetric
    algorithms: i.e., counter and OFB modes for block ciphers, and SEAL
    and RC4.

  * Recognise, and return correct subclass instance for, TLS and SSL
    generators, and the symmetric crypto-based generators.

7 years agomp: Replace MP.product() by an MPMul class. Much more useful.
Mark Wooding [Sat, 28 Jan 2006 19:07:27 +0000]
mp: Replace MP.product() by an MPMul class.  Much more useful.

7 years agoBug squashing.
Mark Wooding [Sat, 28 Jan 2006 19:03:25 +0000]
Bug squashing.

  * Fix setting functions to check for null value (interpreted as property
    deletion) and raise an exception or do something else useful.

  * Fix conversion of read buffer to string so it returns the remainder
    rather than the whole thing.

  * Make conversions between MP and Python long work on PyObjects rather
    than PyLongObjects, to eliminate pointless type casts.

  * Fix primefield constructor argument parsing so that it doesn't crash!

  * Fix radix checking in MP conversions to exclude +/-1, and 0 for output.
    This turns into a little function now.

  * Do argument checking on Jacobi function.

7 years agoReorganization: split out utilities; mapping methods
Mark Wooding [Sat, 28 Jan 2006 18:46:07 +0000]
Reorganization: split out utilities; mapping methods

  * Move non-project-specific Python utilities into a separate file.  They
    might conceivably find their way into a new project some day.

  * Implement the standard mapping methods generically (i.e., in terms of
    basic Python mapping operations).

  * Use the mapping methods for the various key-object-related mappings.

  * Start fixing setter functions for null values.

7 years agoalgorithms: Add PRPs as objects in their own right.
Mark Wooding [Sat, 28 Jan 2006 18:07:53 +0000]
algorithms: Add PRPs as objects in their own right.

7 years agodebian: various fixes.
Mark Wooding [Sat, 28 Jan 2006 14:41:08 +0000]
debian: various fixes.

  * Adopt Debian standard package naming.
  * Improve package descriptions.
  * Set up dependencies according to policy.

7 years agopassim: fix typo
Mark Wooding [Sat, 28 Jan 2006 14:26:52 +0000]
passim: fix typo

`tp_iternexr' instead of `tp_iternext'.

7 years agogf.c: remove stub file
Mark Wooding [Sat, 28 Jan 2006 14:04:24 +0000]
gf.c: remove stub file

This file never really got off the ground; the stuff that was meant
to go in it ended up in mp.c ages ago.

7 years agoExtract Subversion ignore data.
Mark Wooding [Sat, 28 Jan 2006 13:55:26 +0000]
Extract Subversion ignore data.

8 years agokey_qtag fixing.
mdw [Tue, 27 Sep 2005 11:27:14 +0000]
key_qtag fixing.

8 years agoBuffer sharing and subbuffers.
mdw [Tue, 27 Sep 2005 11:27:03 +0000]
Buffer sharing and subbuffers.

8 years agoCheckin, Debianized and more or less complete.
mdw [Mon, 26 Sep 2005 12:58:11 +0000]
Checkin, Debianized and more or less complete.

8 years agoFix for Cygwin.
mdw [Thu, 15 Sep 2005 11:58:36 +0000]
Fix for Cygwin.

8 years agoVarious other little bits.
mdw [Tue, 21 Jun 2005 07:15:39 +0000]
Various other little bits.

8 years agoModularize the password safe.
mdw [Tue, 21 Jun 2005 07:11:00 +0000]
Modularize the password safe.

8 years agoMore fixing for modern Pythons. No longer works with 2.2. Sorry.
mdw [Fri, 29 Apr 2005 13:11:19 +0000]
More fixing for modern Pythons.  No longer works with 2.2.  Sorry.

8 years agoUse default python to build.
mdw [Thu, 28 Apr 2005 09:41:54 +0000]
Use default python to build.

8 years agoFixing for Python 2.3 and later.
mdw [Wed, 27 Apr 2005 23:40:07 +0000]
Fixing for Python 2.3 and later.

8 years agoVarious minor fixings.
mdw [Sun, 10 Apr 2005 23:38:11 +0000]
Various minor fixings.

8 years agoInitial check-in of catacomb-python.
mdw [Sun, 10 Apr 2005 18:03:11 +0000]
Initial check-in of catacomb-python.

8 years agoImport catacomb-python.
mdw [Sun, 10 Apr 2005 17:59:47 +0000]
Import catacomb-python.