digestif icon indicating copy to clipboard operation
digestif copied to clipboard

Feed a hmac

Open reynir opened this issue 2 months ago • 3 comments

It could be useful to be able to feed a hmac in a similar way to how a digest is fed. This allows computing a hmac over data that can't fit in memory at once. I can probably suggest a change.

reynir avatar Apr 04 '24 10:04 reynir

Actually, hmac is just an other way to initialise the ctx (which can be used to feed_*).

PS: We probably can expose something like: val with_key : key -> ctx

dinosaure avatar Apr 04 '24 11:04 dinosaure

I later found the hmaci_* functions which would fit my current needs. Indeed, a val with_key : key -> ctx (or hmac_ctx if needed) would be nice to have.

reynir avatar Apr 04 '24 13:04 reynir

Let's open this PR and see if someone else is interesting by such value.

dinosaure avatar Apr 04 '24 14:04 dinosaure