Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feed a hmac #154

Open
reynir opened this issue Apr 4, 2024 · 3 comments · May be fixed by #155
Open

Feed a hmac #154

reynir opened this issue Apr 4, 2024 · 3 comments · May be fixed by #155

Comments

@reynir
Copy link
Member

reynir commented Apr 4, 2024

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.

@dinosaure
Copy link
Member

dinosaure commented Apr 4, 2024

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

@reynir
Copy link
Member Author

reynir commented Apr 4, 2024

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.

@dinosaure
Copy link
Member

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

@reynir reynir linked a pull request Apr 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants