Ok, i'm retarded. I forgot to add initialization of the struct DSA fields i added (assuming a memset got done without checking..). This resulted in nasty behaviour. In hunting down this problem, i went over the patch with paranoia, cleaner yet again and successfully ran massive random key gen and usage tests against it.
Patches nicely against 0.9.7e as well. ./Configure -DDSA_PRECOMPUTE to enable. Run 'openssl speed dsa' next. Sorry for taking your time. Any chance a patch like this can make it into the dist, eventually? marius
DSA_PRECOMPUTE-openssl-0.9.7d.patch
Description: DSA_PRECOMPUTE-openssl-0.9.7d.patch
