On Thu, Apr 25, 2013 at 2:55 PM, Niels Möller <ni...@lysator.liu.se> wrote:

> * Doing something about the hash/hmac interface, to avoid having to
>   allocate three different buffers for a single hmac context.

Moreover, I need two hmac contexts in order to implement reset().
Since TLS is using the same key per packet, I would need to call
hmac_set_key() on every packet (which is expensive), or save all
states and reload them on reset(). On plain HMAC the memory for the
hashes was not that significant, but on umac that method is quite
wasteful. I don't see a straightforward solution to that though,
without a high level API.

regards,
Nikos
_______________________________________________
nettle-bugs mailing list
nettle-bugs@lists.lysator.liu.se
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to