-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Introduce config option of 128-bit key only in AES calculation #7451
Merged
tom-cosgrove-arm
merged 31 commits into
Mbed-TLS:development
from
yanrayw:7376_aes_128bit_only
Jun 15, 2023
Merged
Changes from 21 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
732ca32
AES: add macro of MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH
0f06618
AES: skip 192bit and 256bit key in selftest if 128bit_only enabled
b1c626b
AES: adjust AES RAM usage according to config options
a870467
Add checks if MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH enabled
3eb50e7
all.sh: add test for AES_ONLY_128_BIT_KEY_LENGTH
ecb6a02
Add AES 128-bit key dependency for tests data
d98ae2f
Add AES 128-bit key dependency in test_suite_psa_crypto.data
a9808ce
Add AES 128-bit key dependency in test_suite_ssl.data
3f41744
generate_psa_tests.py: add extra dependencies based on key bit
3d4d146
mbedtls_config.h: fix issue in grammar
4a7fdff
mbedtls_config.h: paraphrase code size saving in comment
8b9877b
aes.h: add comment for round key buffer in aes context
1ed226f
Auto-enable CTR_DRBG_USE_128_BIT_KEY with AES_ONLY_128_BIT_KEY_LENGTH
374c3ae
all.sh: add test for AES-128bit only without MBEDTLS_CTR_DRBG_C
d9bf370
add ChangeLog entry
e2bc158
aesce.c: add macro of MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH
5dd429c
generate_psa_tests.py: fix typo
ab4fb0d
aes.h: rewrite comment for aes round key buf
a30c72f
rewrite ChangeLog
d2ae432
mbedtls_config.h: rewrite comment for AES_ONLY_128_BIT_KEY_LENGTH
7265bab
mbedtls_config.h: remove empty * line before closing */ line
463351d
ChangeLog: remove issue number as this is a new feature
62c9991
aes selftest: remove non-128-bit data if aes_128bit_only enabled
59c2dfa
aes selftest: determine selftest loop limit in runtime
dd56add
cmac selftest: add macro for non-128-bit data/test
d329c69
gcm selftest: remove non-128-bit data if aes_128bit_only enabled
93533b5
gcm.c: do not set length for some arrays in selftest
d896fcb
nist_kw.c: remove non-128-bit data if aes_128bit_only enabled
012b6bb
all.sh: test AES built-in implementation in AES-128-bit key only
4292441
all.sh: use clang for one test of AES_ONLY_128_BIT_KEY_LENGTH
55ef22c
mbedtls_config.h: add description for CTR_DRBG about AES-128 only
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Features | ||
* Add support to restrict AES to 128-bit keys in order to save code size. | ||
A new configuration option, MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH, can be | ||
used to enable this feature. | ||
Fixes #7376. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(minor) I don't think we need this last line. (1) it's not really a fix, and (2) it looks from other ChangeLog entries that we don't include the issue number for things that we raise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We normally include the issue number for a bug fix, whether discovered internally or externally. This is an indication to users who have existing code and who know that this particular bug affects them. We don't include the issue number for a new feature.