1
2
3
4
5
6
7
8
9
10
11
12
13
|
# Auto generated from "HMAC_RIPEMD128.txt"
package require tls
package require tcltest
tcltest::testConstraint HMAC [expr {[lsearch -nocase [tls::macs] HMAC] > -1}]
tcltest::testConstraint RIPEMD128 [expr {[lsearch -nocase [tls::digests] RIPEMD128] > -1}]
tcltest::test MAC_HMAC-RIPEMD128-1.1 {HMAC_RIPEMD128} \
-constraints {HMAC RIPEMD128 } \
-setup {} \
-body {string range [tls::hmac -hex -digest RIPEMD128 -key [binary decode hex 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b] -data "Hi There"] 0 31} \
-match exact -result fbf61f9492aa4bbf81c172e84e0734db
|
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# Auto generated from "HMAC_RIPEMD128.txt"
lappend auto_path [file dirname [file dirname [file dirname [file dirname [file join [pwd] [info script]]]]]]
package require tls
package require tcltest
tcltest::testConstraint HMAC [expr {[lsearch -nocase [tls::macs] HMAC] > -1}]
tcltest::testConstraint RIPEMD128 [expr {[lsearch -nocase [tls::digests] RIPEMD128] > -1}]
catch {tls::provider legacy}
tcltest::test MAC_HMAC-RIPEMD128-1.1 {HMAC_RIPEMD128} \
-constraints {HMAC RIPEMD128 } \
-setup {} \
-body {string range [tls::hmac -hex -digest RIPEMD128 -key [binary decode hex 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b] -data "Hi There"] 0 31} \
-match exact -result fbf61f9492aa4bbf81c172e84e0734db
|