
9 Dec
2024
9 Dec
'24
6:19 p.m.
Andrey Semashev wrote:
On 12/9/24 21:03, Peter Dimov via Boost wrote:
Andrey Semashev wrote:
Also, my understanding of HMAC[1] is that the key is prepended to the subsequent data and then the whole data is hashed. This contradicts with your code calling result() in the middle. Am I missing something?
I don't understand what contradicts what. HMAC is a separate algorithm.
I'm confused. So the hash algorithm constructors from bytes are not used to pass keys for HMAC?
The constructor of `hmac` will be used to pass keys for HMAC. The constructor of something else will not.