Hello,
пт, 19 июл. 2019 г. в 16:38, Daiki Ueno ueno@gnu.org:
From: Daiki Ueno dueno@redhat.com
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.