Forbid 192-bit without explicit choice #483
No reviewers
Labels
No labels
api-break
approved
bug
component-docs
component-platform
component-test
dependencies
deprecation
DO-NOT-MERGE
enhancement
good first issue
help wanted
needs-adoption
needs-backports
needs-ci
needs-design-approval
needs-info
needs-preceding-pr
needs-review
needs-reviewer
needs-work
priority-high
priority-low
priority-medium
priority-scheduled
priority-very-high
resolved-after-1.1
single-reviewer
size-l
size-m
size-optimisation
size-s
size-xs
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-Mbed-TLS/TF-PSA-Crypto!483
Loading…
Reference in a new issue
No description provided.
Delete branch "hide-small-curves"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Resolves #233
Depends on: https://github.com/Mbed-TLS/mbedtls/pull/10426 for a clean CI
Parametrized CI run with m10426: https://ci.trustedfirmware.org/job/mbed-tls-restricted-pr-test-parametrized/7/
Pushed only for CI feedback so far.
PR checklist
As I wrote in https://github.com/Mbed-TLS/TF-PSA-Crypto/issues/233#issuecomment-3332917983 I don't think this is strongly needed, but it is definitely better than not having it, so thanks for doing it.
@ -603,1 +603,4 @@#if (defined(PSA_WANT_ECC_SECP_K1_192) || defined(PSA_WANT_ECC_SECP_K1_192)) \&& !defined(TF_PSA_CRYPTO_ALLOW_REMOVED_MECHANISMS) \&& !defined(TF_PSA_CRYPTO_WE_ARE_IN_LIBTESTDRIVER1)I couldn't find this
TF_PSA_CRYPTO_WE_ARE_IN_LIBTESTDRIVER1macro, the name is pretty self explanatory, but would be helpful to see the context here. Could you please point me to some background on this?@ -603,1 +603,4 @@#if (defined(PSA_WANT_ECC_SECP_K1_192) || defined(PSA_WANT_ECC_SECP_K1_192)) \&& !defined(TF_PSA_CRYPTO_ALLOW_REMOVED_MECHANISMS) \&& !defined(TF_PSA_CRYPTO_WE_ARE_IN_LIBTESTDRIVER1)It just got added to
tf_psa_crypto_config.c, which is the only place wheretf_psa_crypto_check_config.his included nowadays.By the time you get to the manual config checks,
build_info.hhas been included, so there may be other ways to detect libtestdriver1, butTF_PSA_CRYPTO_WE_ARE_IN_LIBTESTDRIVER1works.CI seems to be failing, but other than that, it looks good to me.
https://github.com/Mbed-TLS/mbedtls/pull/10426 needs to be merged before the CI can pass here. It's currently in the merge queue.