activate the line [1] in the source code, activate the function hexPrint (same file), recompile, reinstall, run the naviserver shell e.g. with "/usr/local/ns/bin/nsd -c" and type in the ns_hmac commands.
Do you see a different result, or do get the same result, but expecting a different one?
I believe the result your code returns is the correct response.
My code is returning a different value, but it looks like its the same. I'll try adding the debugging code.
I checked and I am running Naviserver 4.99.16.
Dave, please test with 4.99.17 if possible (there were changes in the meantime, for both [1] and the crypto support in [2]. Upgrade could help. If not it might be a problem with the Tcl version.