Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cd89880e03609f75d27ffa999fc318f0ea9c4743
Ticket: 2413689fffffffffffffffffffffffffffffffff
Bug in function s_mp_sqr()
User & Date: gcramer on 2008-12-10 11:58:14
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Function s_mp_sqr() has a bug. I have no example, but I developed a multiple precision library by myself, and I had the same bug in my code. In line bn_s_mp_sqr.c:59 "r       = ((mp_word) *tmpt) + r + r + ((mp_word) u);" an integer overflow may occur! This leads to wrong results in general. Inside the function "HAC pp.596-597, Algorithm 14.16" is referenced, but "Note 14.17 (i)" is not regarded appropriately.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "gcramer"
  10. subsystem changed to: "56. LibTomMath"
  11. title changed to: "Bug in function s_mp_sqr()"
  12. type changed to: "Bug"