]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Dedicated routines for poly1305 arithmetic.
authorSimon Tatham <anakin@pobox.com>
Sun, 7 Jun 2015 11:26:26 +0000 (12:26 +0100)
committerSimon Tatham <anakin@pobox.com>
Sun, 7 Jun 2015 12:50:05 +0000 (13:50 +0100)
commit8581676ee9c4ebd6365444d3d98973bf8fe33ccb
tree7b7853a00d4fb0936d5026fe96aa2f07aa4cd1eb
parent2c60070aad2d959a9e7e850523352c23c6aa7009
Dedicated routines for poly1305 arithmetic.

Rather than doing arithmetic mod 2^130-5 using the general-purpose
Bignum library, which requires lots of mallocs and frees per operation
and also uses a general-purpose divide routine for each modular
reduction, we now have some dedicated routines in sshccp.c to do
arithmetic mod 2^130-5 in a more efficient way, and hopefully also
with data-independent performance.

Because PuTTY's target platforms don't all use the same size of bignum
component, I've arranged to auto-generate the arithmetic functions
using a Python script living in the 'contrib' directory. As and when
we need to support an extra BignumInt size, that script should still
be around to re-run with different arguments.
contrib/make1305.py [new file with mode: 0755]
sshccp.c