Rearrange the file tree. It's actually, like, a tree now. Testing is a bit wobbly: you really do have to make the library before the tests will build. I don't like this, but the pieces of the library are all rather intertwined. One small piece of unintertwining: `strongprime.c' no longer includes `rand.h', which detaches the mathematical code from the symmetric-crypto build system disaster. Test files have been moved into `t/' directories as is now established practice. Also take the opportunity to eradicate the CVS `$Id...$' droppings.
cc-hash.c, hashsum.c: Move hash-file parsing stuff to `cc-hash.c'. This is a bit trickier than just slinging existing functions about and tarting them up a bit: it introduces a proper interface to parsing hash files, which previously was interleaved with actually verifying the hashes. Also moved a couple of auxiliary functions which are needed by the moved code.
A number of small bug fixes, some motivated by compiler warnings. * key-data.c:key_nextsubkey -- explicitly return nonzero if we found something. * key-io.c:key_new -- cast the constant type pointer during the unpleasant hack. * mp-mem.c:mp_build -- store an arena in the built integer; otherwise pgen_primep (for example) gets confused later on. * mp-modsqrt.c:mp_modsqrt -- fix the maths in a comment; the code was fine. * oaep.c:oaep_decode -- don't try to do too much in one expression. * pgen-simul.c:pgen_simultest -- always return a sensible result code. * cc.h:sig -- hash classes are constant. * cc-{kem,sig}.c:get{kem,sig} -- initialize the kp structure member, just in case. * rijndael*.c, square.c -- fix const-correctness errors.