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

constant Hash (checking for equality in C/adm? #444

Open
lulcat opened this issue Feb 3, 2025 · 0 comments
Open

constant Hash (checking for equality in C/adm? #444

lulcat opened this issue Feb 3, 2025 · 0 comments
Labels
question Further information is requested

Comments

@lulcat
Copy link

lulcat commented Feb 3, 2025

Hi. I use the C code mixed with other great language for performance. HOwever, I am looking to use hmac/kmac (and wondering if the blake3_keyed IS in fact the same construct as keccak mac?). As there is the , for fixed length keys, H(k|| m) but also this H_k(m) , right?

But anyway, alsol the main lib implementation in Rust had struct Hash which says one should absolutely use such an impleentaiton for checking macs, and not memcmp or memory iteraiton of some form or other.. due to constant time security requirements.

Why is this not in the C API? DO you intend to add it or is this something we have to do then? (Including I guess some of the related API stuff)

Regards,

M.

@BurningEnlightenment BurningEnlightenment added the question Further information is requested label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants