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-NI support #118
Comments
Hello, Yes, I would also be glad to see AES-NI / hardware acceleration into EncFS ! Thank you very much ! Ben |
This should already be supported via OpenSSL's engine support: https://github.com/vgough/encfs/blob/master/encfs/openssl.cpp#L75 At one time, I recall having to set global openssl configuration to enable the AES-NI hardware engine. I don't know if that's still necessary, or if OpenSSL is supposed to auto-detect. |
Thank you for your feedback vgough ! According to this link, EVP_* methods must be used to activate AES-NI. Perhaps it could be a good idea to add an EncFS option to show AES-NI status ?
Thank you very much ! Ben |
@benrubson Maybe it does, I see following line in Line 1265 in 340fefd
|
It definitely looks like EVP functions are being used, at least in some places. EDIT: Removed ridiculously long grep output. Suffice to say a grep for EVP suggests they're being used :) |
Yes having a closed look at the code, sounds like In addition, according to this link, would be "useless" to make a function telling that AES-NI is supported, the main thing being to use the correct functions in the code itself. We then first have to be sure that AES-NI functions are used everywhere in the code (developper confirmation needed). |
Maybe a good alternative for computers that don't have AES-NI would be a GPU implementation. |
I think we can now close this. Thx ! |
Is it possible to enable hardware acceleration?
I see high CPU usage when doing large files.
The text was updated successfully, but these errors were encountered: