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

modules: mbedtls: Make PSA key types user configurations #1244

Merged
merged 3 commits into from
Jul 27, 2023

Conversation

joerchan
Copy link
Contributor

Make the PSA key type configurations be user configurations instead
of implictly enabled based on other configurations.
While AES is the most likely to be used in this case the user can
choose different block ciphers for block cipher modes, and others
stream ciphers also exists.
This also allows applications to enable key generation without any
algorithms for ECC and RSA keys.
Also add the full key types configurations, even though not all may be
supported.

Add help text for for unsafe PSA algorithms. These should not be used
for security.

Use same text naming as PSA spec for RIPEMD-160 and SHA-1.

@@ -179,7 +179,10 @@ config PSA_HAS_HASH_SUPPORT

config PSA_WANT_ALG_SHA_1
bool
prompt "PSA SHA1 support" if !PSA_PROMPTLESS
prompt "PSA SHA-1 support (unsafe)" if !PSA_PROMPTLESS
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
prompt "PSA SHA-1 support (unsafe)" if !PSA_PROMPTLESS
prompt "PSA SHA-1 support (weak)" if !PSA_PROMPTLESS

@joerchan joerchan force-pushed the psa-key-types-config branch 2 times, most recently from a2f6c9b to be71d93 Compare July 26, 2023 12:10
fixup! [nrf noup] modules: mbedtls: add PSA configurations

Use same text naming as PSA spec for RIPEMD-160 and SHA-1.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
fixup! [nrf noup] modules: mbedtls: add PSA configurations

Add help text for for unsafe PSA algorithms. These should not be used
for security.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
fixup! [nrf noup] modules: mbedtls: add PSA configurations

Make the PSA key type configurations be user configurations instead
of implictly enabled based on other configurations.
While AES is the most likely to be used in this case the user can
choose different block ciphers for block cipher modes, and others
stream ciphers also exists.
This also allows applications to enable key generation without any
algorithms for ECC and RSA keys.
Also add the full key types configurations, even though not all may be
supported.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
@nordicjm nordicjm merged commit a2a683b into nrfconnect:main Jul 27, 2023
9 checks passed
@joerchan joerchan deleted the psa-key-types-config branch July 27, 2023 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants