utils/gcm-ref (poly64_mul_simple): Strip padding off the product.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 16 Jan 2024 13:46:58 +0000 (13:46 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 16 Jan 2024 13:46:58 +0000 (13:46 +0000)
commit91a8f88843c05f3b10e7da8f6db57f15490aa26e
tree5bbe1a49bc0d7f97e1ab2226cadce99338c32c6c
parent4e7475c2fc07c8e588583d82d95221d8e6813757
utils/gcm-ref (poly64_mul_simple): Strip padding off the product.

Rather than leaving this job to the caller.  I'm going to decree that
it's the presentation-function's job to show padding in the right place,
rather than the multiplier's job to retain it.  This means that we need
to keep track of the padding properly, but it's pretty easy.

The most important effect is that there's no longer a rather strange
bodge in `poly64_common' to strip the padding in one particular case
because `poly64_mul_simple' has done it properly in every case.
utils/gcm-ref