On Mon, 2017-05-22 at 11:00 +0200, Nikos Mavrogiannopoulos wrote:
update(mac_ctx, 1, &i); if (left <= digest_size) { digest(mac_ctx, left, dst); return; } digest(max_ctx, digest_size, dst); update(mac_ctx, digest_size, dst); }
I'm fine with that. Do you want me to post an updated patch or would you modify it?
Here are the patches for HKDF only updated with the above approach (and a sanity check for length).
The gitlab CI output for these should be at: (queued atm) https://gitlab.com/nmav/nettle/pipelines/8450279
That patch set also includes a tweak to .gitlab-ci.yml for CI to work without attempting to regenerate the testsuite make rules.
regards, Nikos