$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2024-12-09 18:19:07
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.
> >
> > 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?
The constructor of `hmac` will be used to pass keys for HMAC. The
constructor of something else will not.