-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix HMAC usage #3
Labels
bug
Something isn't working
Comments
I think I could do a |
Got key stuff in but that's not hmac so keeping this open. |
For the HMAC templates to work, the key needs to be initiated at compile-time. The issue is, while the default key is the IV, they are of different types in the s (uint) and b (ulong) variants. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While the Digest API uses std.digest.hmac.HMAC for HMAC, which adds a secret hashed key using the template API, the way BLAKE2 does is just... Weird.
At initiation:
Which is simply not possible with the HMAC structure template. Unless there's a hack I don't know of.
The text was updated successfully, but these errors were encountered: