1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Minor clarifications.

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard
2023-09-28 11:02:37 +02:00
parent 89ae266e5a
commit 140c08e325
2 changed files with 11 additions and 5 deletions

View File

@ -152,6 +152,11 @@ driver or built-in, you should use the following macros:
`mbedtls/build_info.h` where xxx can take the same values as for `mbedtls/build_info.h` where xxx can take the same values as for
`MBEDTLS_ECP_DP_xxx` macros. `MBEDTLS_ECP_DP_xxx` macros.
Note that for externally-provided drivers, the integrator is responsible for
ensuring the appropriate `MBEDTLS_PSA_ACCEL_xxx` macros are defined. However,
for the p256-m driver that's provided with the library, those macros are
automatically defined when enabling `MBEDTLS_PSA_P256M_DRIVER_ENABLED`.
### Limitations regarding fully removing `ecp.c` ### Limitations regarding fully removing `ecp.c`
A limited subset of `ecp.c` will still be automatically re-enabled if any of A limited subset of `ecp.c` will still be automatically re-enabled if any of

View File

@ -1451,15 +1451,16 @@
* #PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT and/or * #PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT and/or
* #PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE as needed. * #PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE as needed.
* *
* \note To genuinely benefit from the smaller code size of p256-m, make * \note To benefit from the smaller code size of p256-m, make sure that you
* sure that you do not enable any ECC-related option that requires * do not enable any ECC-related option not supported by p256-m: this
* the built-in implementation of elliptic curve arithmetic. Make sure * would cause the built-in ECC implementation to be built as well, in
* #PSA_WANT_ALG_DETERMINISTIC_ECDSA, #PSA_WANT_ALG_JPAKE and * order to provide the required option.
* Make sure #PSA_WANT_ALG_DETERMINISTIC_ECDSA, #PSA_WANT_ALG_JPAKE and
* #PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE, and curves other than * #PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE, and curves other than
* SECP256R1 are disabled as they are not supported by this driver. * SECP256R1 are disabled as they are not supported by this driver.
* Also, avoid defining #MBEDTLS_PK_PARSE_EC_COMPRESSED or * Also, avoid defining #MBEDTLS_PK_PARSE_EC_COMPRESSED or
* #MBEDTLS_PK_PARSE_EC_EXTENDED as those currently require a subset of * #MBEDTLS_PK_PARSE_EC_EXTENDED as those currently require a subset of
* the built-in ECC implementation, see docs/driver-only-builts.md. * the built-in ECC implementation, see docs/driver-only-builds.md.
*/ */
//#define MBEDTLS_PSA_P256M_DRIVER_ENABLED //#define MBEDTLS_PSA_P256M_DRIVER_ENABLED