math/scaf.c, etc.: Only need 3*NPIECE words of scratch space.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 29 Sep 2017 21:25:32 +0000 (22:25 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 29 Sep 2017 21:25:32 +0000 (22:25 +0100)
commite057fe08fc130c9a84c0d5ae885580286837b2d3
treed57f5355e381e9b4064ef0916b6057aa24485d54
parentd1dace004048e3147d27ccc6cf5f33ada1fa40be
math/scaf.c, etc.: Only need 3*NPIECE words of scratch space.

The extra one would have been necessary because we're calculating the
high half of a product of two (NPIECE + 1)-piece numbers, but in fact we
only need the low NPIECE pieces of the result.

Fix the commentary and the callers.
math/scaf.c
math/scaf.h
pub/ed25519.c
pub/ed448.c