Skip to content
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

Remove unneeded Rcon values to save 244 bytes of ROM #12

Closed
wants to merge 1 commit into from
Closed

Remove unneeded Rcon values to save 244 bytes of ROM #12

wants to merge 1 commit into from

Conversation

JordanGoulder
Copy link

According to http://en.wikipedia.org/wiki/Rijndael_key_schedule#Rcon only up to Rcon[10] is needed for AES-128. Even less for larger key sizes. By removing the unused values 244 bytes of ROM are saved. After making this change all tests still pass.

@kokke
Copy link
Owner

kokke commented Jun 15, 2016

This observation is golden! Thank you very much for your insight :)

@kokke kokke mentioned this pull request Jun 15, 2016
@kokke
Copy link
Owner

kokke commented Jul 13, 2017

I finally got around to saving some code.
Thanks for pointing this out for me!
I can't merge the code in this PR, so I've given you credits in the source code instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants