Defined in
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
-
No testcase defined.
Source code:
upvar #0 $token state
if {[info exists state(md5c)]} {
set r $state(md5c)
unset state
return $r
} elseif {[info exists state(ckctx)]} {
cryptkit::cryptEncrypt $state(ckctx) ""
cryptkit::cryptGetAttributeString $state(ckctx) CRYPT_CTXINFO_HASHVALUE r 16
cryptkit::cryptDestroyContext $state(ckctx)
if {[info exists r]} {
unset state
return $r
}
} elseif {[info exists state(trf)]} {
close $state(trf)
set r $state(trfwrite)
unset state
return $r
}
set len [string length $state(i)]
set pad [expr {56 - ($len % 64)}]
if {$len % 64 > 56} {
incr pad 64
}
if {$pad == 0} {
incr pad 64
}
append state(i) [binary format a$pad \x80]
append state(i) [binary format ii [expr {8 * $state(n)}] 0]
set len [string length $state(i)]
for {set n 0} {($n + 64) <= $len} {} {
MD5Hash $token [string range $state(i) $n [incr n 64]]
}
set r [bytes $state(A)][bytes $state(B)][bytes $state(C)][bytes $state(D)]
unset state
return $r
XQL Not present:Generic, PostgreSQL, Oracle