-
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
Alternative random generator support for PSA #3895
Merged
gilles-peskine-arm
merged 26 commits into
Mbed-TLS:development
from
gilles-peskine-arm:psa-external-random
Jan 6, 2021
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
90edc99
Create a header file for PSA crypto random generator abstraction
gilles-peskine-arm 30524eb
psa_crypto: create random and drbg abstraction
gilles-peskine-arm f08b3f8
Autonomous random driver: create configuration option
gilles-peskine-arm 514a8fd
Create a file for PSA crypto test helpers
gilles-peskine-arm b8af228
Autonomous random driver: declare the type and function
gilles-peskine-arm 1c49f1a
Include headers in psa_crypto.h for mbedtls_to_psa_error
gilles-peskine-arm 4fc21fd
Implement MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG
gilles-peskine-arm 82e57d1
PSA: support HMAC_DRBG
gilles-peskine-arm ed03890
PSA: allow the configuration to favor HMAC_DRBG
gilles-peskine-arm 68cc434
PSA support for HMAC_DRBG: changelog entry
gilles-peskine-arm 14c332b
Fix a Doxygen warning
gilles-peskine-arm 89ffb28
Fix option compatibility check
gilles-peskine-arm b663a60
Note the expectations on mbedtls_psa_external_get_random()
gilles-peskine-arm c096301
Document mbedtls_psa_external_random_context_t
gilles-peskine-arm c109b37
Test MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG
gilles-peskine-arm bee96c8
Explain the conditions for checking DRBG error codes
gilles-peskine-arm b0a748e
Copyediting
gilles-peskine-arm e995b9b
Clarify statuses from mbedtls_psa_external_get_random
gilles-peskine-arm 5894e8e
Replace mbedtls_psa_random_state( ... ) by MBEDTLS_PSA_RANDOM_STATE
gilles-peskine-arm 8814fc4
Make mbedtls_psa_get_random more usable outside psa_crypto.c
gilles-peskine-arm b2b64d3
Rename psa_crypto_random.h to psa_crypto_random_impl.h
gilles-peskine-arm b3cd963
Pacify check-names.sh
gilles-peskine-arm 88fa5c4
Minor documentation improvements
gilles-peskine-arm 71ddab9
Simplify the chunk loop in psa_generate_random
gilles-peskine-arm 0c59ba8
Fix the error detection in psa_generate_random
gilles-peskine-arm 9c3e060
Explain the design of mbedtls_psa_get_random better
gilles-peskine-arm 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 | ||
* The PSA crypto subsystem can now use HMAC_DRBG instead of CTR_DRBG. | ||
CTR_DRBG is used by default if it is available, but you can override | ||
this choice by setting MBEDTLS_PSA_HMAC_DRBG_MD_TYPE at compile time. | ||
Fix #3354. | ||
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.
By the way, I'm deliberately not mentioning external RNG support in the changelog in this PR. I'll add a changelog entry in the follow-up that makes an external PSA RNG usable from TLS code.