Move the malloc and free of scratch space out of the internal_mul
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 21 Feb 2011 19:47:28 +0000 (19:47 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 21 Feb 2011 19:47:28 +0000 (19:47 +0000)
commit5a502a193f88c484cff9872bdbf0e2143d96294b
treec368d3213ccc3416f77abe263cc203272c2d2de1
parente8367a6c971d8e7dd4db348626678c79a1cf06c7
Move the malloc and free of scratch space out of the internal_mul
routines into their callers, where they'll be done once for a whole
modpow rather than many times within each multiply. Doesn't save much
time as far as I can see - perhaps a couple of percent, one second in
the minute it takes to run the new bignum test suite - but seems like
a sensible idea anyway on general principles.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9103 cda61777-01e9-0310-a592-d414129be87e
sshbn.c