Re: [PATCH v2 3/6] nettle-meta: Add meta interface for HMAC functions

2020-02-09 Thread Niels Möller
Dmitry Eremin-Solenikov writes: > ср, 25 дек. 2019 г. в 14:31, Niels Möller : >> >> If we define a single nettle_mac for each supported (no-nonce) mac >> algorithm, what should the key size be for each algorithm? Using the >> underlying block size for the hmac algorithms seems to be a bit >>

Re: [PATCH v2 3/6] nettle-meta: Add meta interface for HMAC functions

2019-12-25 Thread Dmitry Eremin-Solenikov
Hello, ср, 25 дек. 2019 г. в 14:31, Niels Möller : > > Daiki Ueno writes: > > > +static void > > +hmac_md5_set_key_wrapper (void *ctx, const uint8_t *key) > > +{ > > + hmac_md5_set_key (ctx, MD5_BLOCK_SIZE, key); > > +} > > [...] > > > +extern const struct nettle_mac nettle_hmac_md5; > >

Re: [PATCH v2 3/6] nettle-meta: Add meta interface for HMAC functions

2019-12-25 Thread Niels Möller
Daiki Ueno writes: > +static void > +hmac_md5_set_key_wrapper (void *ctx, const uint8_t *key) > +{ > + hmac_md5_set_key (ctx, MD5_BLOCK_SIZE, key); > +} [...] > +extern const struct nettle_mac nettle_hmac_md5; > +extern const struct nettle_mac nettle_hmac_ripemd160; > +extern const struct

[PATCH v2 3/6] nettle-meta: Add meta interface for HMAC functions

2019-07-22 Thread Daiki Ueno
From: Daiki Ueno Signed-off-by: Daiki Ueno --- Makefile.in | 3 +++ hmac-md5-meta.c | 47 +++ hmac-ripemd160-meta.c | 47 +++ hmac-sha1-meta.c | 47 +++