Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2010-04-14
03:35 • Closed ticket [2986723fff]: issue with tcllib sha256 on 64bit systems plus 8... artifact: a934ec5f8c user: andreas_kupries
2010-04-13
20:21 • New ticket [2986723fff]. artifact: 1f72c33e57 user: zdia

issue with tcllib sha256 on 64bit systems

Closed / Invalid2986723fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2010-04-13 20:21:51
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
andreas_kupriesplain2010-04-14 03:35:06
allow_comments - 1

Please file bugs for Tcllib in the appropriate bug tracker, i.e.
https://sourceforge.net/projects/tcllib/develop
Log in (anonymous is fine) to add a comment.