On Thu, Apr 25, 2013 at 2:55 PM, Niels Möller nisse@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