From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2024-12-09 18:08:25


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.
>
> https://pdimov.github.io/hash2/doc/html/hash2.html#ref_hmac

I'm confused. So the hash algorithm constructors from bytes are not used
to pass keys for HMAC?