]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit
The bignum code has two representations of zero, since
authorSimon Tatham <anakin@pobox.com>
Mon, 5 Aug 2013 19:50:51 +0000 (19:50 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 5 Aug 2013 19:50:51 +0000 (19:50 +0000)
commitc2cdadf81ee444b97b5d36c3bd4705bc9f343f92
treed0372aff02364a125025828e7f09efa7fe73378f
parent6bd9ee0bd690da526479a6dc2ce722074f5ad360
The bignum code has two representations of zero, since
bn_restore_invariant (and the many loops that duplicate it) leaves a
single zero word in a bignum representing 0, whereas the constant
'Zero' does not have any data words at all. Cope with this in
bignum_cmp.

(It would be a better plan to decide on one representation and stick
with it, but this is the less disruptive fix for the moment.)

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