Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1f72c33e57d15e81e88fcec67219a53aa206a3eb
Ticket: 2986723fffffffffffffffffffffffffffffffff
issue with tcllib sha256 on 64bit systems
User & Date: zdia on 2010-04-13 20:21:51
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Having compiled Tcltk on a 64bit system I could not open databases which were encrypted with the sha256 algorithm. Before I used only 32bit versions of ActiveState binaries. Debugging the sha256.tcl file I found the reason:
    
    In line 303-308 there was one expression which was not ANDed by 0xffffffff. The patched line looks now like:
    
    for {set t 16} {$t < 64} {incr t} {
                lappend W [expr {([sigma1 [lindex $W [incr t2]]] \
                                     + [lindex $W [incr t7]] \
                                     + [sigma0 [lindex $W [incr t15]]] \
                                     + [lindex $W [incr t16]]) & 0xffffffff}]
            }
    
    Now everything works fine. 
    
    Zbigniew Diaczyszyn
    
    
    
    
    
  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: "zdia"
  10. subsystem changed to: "55. Other Tools"
  11. title changed to: "issue with tcllib sha256 on 64bit systems"
  12. type changed to: "Patch"