-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
AES implementation is vulnerable to cache-timing attacks #23791
Comments
Connected to Huly®: V_0.6-22202 |
That commit has nothing to do with AES. Can you be a bit more specific about what you mean? |
@oskar2517, perhaps you can help explain the details, given that you upvoted the issue? |
I'm sorry, I guess I was being unclear (it was late and I wanted to sleep). I just mentioned the revision so that it's known which version of the code I found to be vulnerable. Briefly, the issue is that, as seen in As a mitigation, I would recommend re-implementing this primitive by binding against (not transpiling!) a well-known and high-quality cryptography library. I haven't checked the other cryptographic algorithms in this repository, but as a precaution, I would recommend doing the same for them. |
Thanks for the clarification. |
@kimshrier, @joe-conigliaro, @blackshirt what do you think? |
i dont think we have ported native AESNI hardware to support for timing-resistent operations...
Unfortunately, i dont think we have one of them implemented in v. I think the good step for this current time just adds a doc (note) on the |
I would be willing to look into the 2 alternatives mentioned by @blackshirt and see if a pure v implementation is something I could do. I am severely resource constrained (no time for personal projects) at the moment so it might be a while before I could commit some serious time to it. |
As of 5376a55, the AES implementation uses the S-box in a way that is commonly known to be vulnerable to cache-timing attacks.
Cache-timing attacks on AES explains the issue.
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: