-
Notifications
You must be signed in to change notification settings - Fork 403
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
Feature request: add crypto acceleration support #166
Comments
Is the a particular platform/acceleration you're interested in? There's a mention of AES for libtomcrypt libtom/libtomcrypt#557 (comment) , though acceleration might also be useful for ECC. I don't know if /dev/crypto for AES/AES-GCM/SHA256 would be faster than chacha20-poly1305 in software. |
I have a router with hardware AES, DES, DES3, SHA1, SHA256, MD5 and XOR. CPU is Marvell Armada XP. |
@M95D you know that kernel crypto is way slower than userspace soft crypto? the problem is the userspace / kernel context switch. all data must be tranfered to the kernel space and back after encryption/decryption. in addition there is no real usefull api for kernel crypto which can be accessed from userspace, except for some custom hacks like OCF framework which is not part of the official kernel |
For small blocks, yes. As I understand it (I might be very wrong) /dev/crypto requires opening that file and performing some ioctls to set up a session and send/receive data. There is no library or anything else other than a header file to import. This request was to ask if it was possible to use the kernel instead of a library, not about speed. |
@M95D small blocks are the common use for ssh. and /dev/crypto is ocf framework. this is not part of the mainline kernel. its originally freebsd and available as third party patch |
Thank you. |
Lots of routers and other devices now have some form of crypto acceleration usually available with /dev/crypto.
Is it possible to add support for crypto acceleration and remove the software crypto library? It would make dropbear smaller and increase file transfer speed a lot, especially on low-power CPUs.
Thanks.
The text was updated successfully, but these errors were encountered: