Tk Library Source Code

View Ticket
Login
Ticket UUID: 694894
Title: md5: modularize in order to use with chunks of data
Type: RFE Version: None
Submitter: davidw Created on: 2003-02-28 07:35:01
Subsystem: md5 Assigned To: patthoyts
Priority: 3 Low Severity:
Status: Closed Last Modified: 2003-08-06 03:45:04
Resolution: Closed By: patthoyts
    Closed on: 2003-08-05 20:45:04
Description:
According to the md5 RFC, it's possible to use this
algorithm with arbitrarily large chunks of data, and
infact the C code that implements the algorithm is
capable of loading a file a chunk at a time and
processing it incrementally.  From what I can see, the
Tcl code we have doesn't make this possible, which
makes it impossible to use it with, for instance, large
files (or other things - say data coming in off a socket).
User Comments: patthoyts added on 2003-08-06 03:45:04:
Logged In: YES 
user_id=202636

This has been comitted now.  Use 'package require md5 2' and
then you can do
 set tok [md5::MD5Init]
 md5::MD5Update $tok $data
 md5::MD5Update $tok $data
 set hash [md5::MD5Final $tok]

patthoyts added on 2003-05-02 15:40:36:
Logged In: YES 
user_id=202636

I have been thinking about doing this myself as I've
recently done just this for the MD4 implementation. 

See md4.tcl for how it will look.

andreas_kupries added on 2003-03-29 00:56:39:
Logged In: YES 
user_id=75003

Data off a socket => See Trf, which is capable of doing this.