Hello,

пт, 19 июл. 2019 г. в 16:38, Daiki Ueno <[email protected]>:
>
> From: Daiki Ueno <[email protected]>
>
> This adds a set_key_expanded to all HMACs, to provide a compatible
> signature with nettle_set_key_func.  This function is similar to
> set_key, but assumes the input is already expanded to the hash block
> size.

I'd suggest not to define a separate hmac_set_key_expanded().
Will the folllowing function work for you?

static nettle_set_key_func hmac_md5_set_key_wrapper
static void
hmac_md5_set_key_wrapper(void *ctx, const uint8_t *key)
{
  hmac_md5_set_key(ctx, MD5_BLOCK_SIZE, key);
}

It will be less intrusive and more in line with other set_key wrappers.

-- 
With best wishes
Dmitry
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to