-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Is there any plan to support CCM mode? #168
Comments
Hi @cy18 and thanks for your interest :) No plans currently, unfortunately. Furthermore, for an AEAD algorithm I think I would prefer GCM and I do have plans to support GCM some day. For a comparison between CCM and GCM, see this link : https://crypto.stackexchange.com/a/19446/51068 |
Thank you for your work on tiny-AES-c. @kokke Here's another comparison about CCM and GCM https://crypto.stackexchange.com/questions/24095/aes-gcm-vs-other-encryption-modes-in-embedded-environment-for-network-traffic I think CCM is a better than GCM on MCU applications. This is because CCM only need AES Cipher, and fewer ROM and RAM are needed. When speed is the concern, use -O3 instead of -Os could increase the speed massively. Futher more, CCM could take more advantage of hardware AES. This could be useful when communicating between one MCU with hardware AES and another without. I have forked tiny-AES-c to added support for CCM, and it is quite simple. I'm willing to submit a PR but I found it's hard to keep the style and API uniform. |
Hi @cy18
Thanks for the link. The discussion sheds light on some nuances I hadn't considered regarding data-dependency.
The main design goal of this library is not performance but a small resource footprint (RAM/ROM), so I don't have much opinion performance-wise, as long as the performance is usable/acceptable.
I checked out your github repos, but couldn't find mention of CCM mode - am I missing something? :S If you're willing to make a PR, I think we can work out something w.r.t. style and API conformity. The API is not frozen, so if it needs some refactoring to make CCM a fit, I think we can make it happen. I'm always interested in gaining a new feature/mode-of-operation ;) |
I have not pushed it yet. I'll do some clean up and push it tomorrow. |
Just for reference, #169 is related to this issue |
No description provided.
The text was updated successfully, but these errors were encountered: