md5::MD5Update (public)
md5::MD5Update token data
Defined in packages/acs-tcl/tcl/tcllib-doc-procs.tcl
Feed a chunk of binary data into an incremental MD5 digest.
- Parameters:
- token (required)
- Token returned by MD5Init.
- data (required)
- Chunk to hash.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: variable accel upvar #0 $token state if {$accel(critcl)} { if {[info exists state(md5c)]} { set state(md5c) [md5c $data $state(md5c)] } else { set state(md5c) [md5c $data] } return } elseif {[info exists state(ckctx)]} { if {[string length $data] > 0} { cryptkit::cryptEncrypt $state(ckctx) $data } return } elseif {[info exists state(trf)]} { puts -nonewline $state(trf) $data return } # Update the state values incr state(n) [string length $data] append state(i) $data # Calculate the hash for any complete blocks set len [string length $state(i)] for {set n 0} {($n + 64) <= $len} {} { MD5Hash $token [string range $state(i) $n [incr n 64]] } # Adjust the state for the blocks completed. set state(i) [string range $state(i) $n end] returnXQL Not present: Generic, PostgreSQL, Oracle