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

external/mbedtls/config.h: Enable MBEDTLS_AES_ROM_TABLES #6080

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jylee9613
Copy link
Contributor

If MBEDTLS_AES_ROM_TABLES is disabled, aes_gen_tabels() calculate S-Box table and save it in the static buffers.
However, S-Box table is unchanged unless the seed is changed, and there was no operation to change the seed.
Therefore, this commit enables MBEDTLS_AES_ROM_TABLES to save S-Box tables as const (to remove unnecessary static memory)

If MBEDTLS_AES_ROM_TABLES is disabled, aes_gen_tabels() calculate S-Box table and save it in the static buffers.
However, S-Box table is unchanged unless the seed is changed, and there was no operation to change the seed.
Therefore, this commit enables MBEDTLS_AES_ROM_TABLES to save S-Box tables as const (to remove unnecessary static memory)
Copy link
Contributor

@sunghan-chang sunghan-chang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but need to get confirm from Jinhwan.

@sunghan-chang
Copy link
Contributor

@j11591 Could you review this?

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.

None yet

2 participants