simon-git: putty (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sat Apr 8 21:35:07 BST 2017


TL;DR:
  d2653e7 Fix bug in Poly1305 bigval_final_reduce().

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2017-04-08 21:35:07

commit d2653e79aba277f5d8249c421a7c342e08548403
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=d2653e79aba277f5d8249c421a7c342e08548403;hp=61f668aa5ce48042de56d2fb77ba02aed290b18f
Author: Simon Tatham <anakin at pobox.com>
Date:   Sat Apr 8 17:29:41 2017 +0100

    Fix bug in Poly1305 bigval_final_reduce().
    
    Mark Wooding pointed out that my comment in make1305.py was completely
    wrong, and that the stated strategy for reducing a value mod 2^130-5
    would not in fact completely reduce all inputs in the range - for the
    most obvious reason, namely that the numbers between 2^130-5 and 2^130
    would never have anything subtracted at all.
    
    Implemented a replacement strategy which my tests suggest will do the
    right thing for all numbers in the expected range that are anywhere
    near an integer multiple of the modulus.

 contrib/make1305.py |  20 +++---
 sshccp.c            | 188 +++++++++++++++++++++++++++++-----------------------
 2 files changed, 117 insertions(+), 91 deletions(-)



More information about the tartarus-commits mailing list