Forum OpenACS Development: Re: ns_hmac and byte array

Collapse
6: Re: ns_hmac and byte array (response to 5)
Posted by Dave Bauer on
Gustaf,

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.

Collapse
7: Re: ns_hmac and byte array (response to 6)
Posted by Gustaf Neumann on
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.

[1] https://openacs.org/forums/message-view?message_id=5380070
[2] https://openacs.org/webpush-demo/webpush-demo.tcl

Collapse
8: Re: ns_hmac and byte array (response to 7)
Posted by Dave Bauer on
Gustaf, thank you!

I compiled Naviserver 4.99.17 with Tcl 8.5.19 to see if the issue resolved itself, and I am not getting the same result as your example.

It does appear the Naviserver version affected the results, and not the Tcl version.

Collapse
9: Re: ns_hmac and byte array (response to 8)
Posted by Gustaf Neumann on
Glad that this helped! Tcl bytearrays are more tricky than it looks at the first sight.

all the best
-g