mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-30 08:56:50 -04:00
config_psa: introduce new internal KEY_PAIR symbol for BASIC+IMPORT+EXPORT
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
5ca80e7de0
commit
73fc082fcd
@ -1003,13 +1003,26 @@ extern "C" {
|
|||||||
#define PSA_WANT_ALG_SOME_PAKE 1
|
#define PSA_WANT_ALG_SOME_PAKE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Temporary internal migration helpers */
|
/* Even though KEY_PAIR symbols' feature several level of support (BASIC, IMPORT,
|
||||||
#if defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC) || \
|
* EXPORT, GENERATE, DERIVE) we're not planning to have support only for BASIC
|
||||||
defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT) || \
|
* without IMPORT/EXPORT since these last 2 features are strongly used in tests.
|
||||||
defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT) || \
|
* This is possible also because, in general, it is allowed to include more
|
||||||
defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE) || \
|
* feature than what is strictly requested.
|
||||||
defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE)
|
*
|
||||||
#define MBEDTLS_PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_LEGACY
|
* As a consequence the following internal symbol:
|
||||||
|
* - is used to put together these 3 dependencies (BASIC + IMPORT + EXPORT)
|
||||||
|
* - is enabled by BASIC which itself is enabled as soon as any feature is
|
||||||
|
* selected
|
||||||
|
* - it does not include EXPORT or GENERATE, for which specific symbols have
|
||||||
|
* to be enabled explicitly.
|
||||||
|
*/
|
||||||
|
#if defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC)
|
||||||
|
#define MBEDTLS_PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC_IMPORT_EXPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* See description of MBEDTLS_PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC_IMPORT_EXPORT */
|
||||||
|
#if defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_KEY_PAIR_BASIC)
|
||||||
|
#define MBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_KEY_PAIR_BASIC_IMPORT_EXPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Temporary internal migration helpers */
|
/* Temporary internal migration helpers */
|
||||||
@ -1028,15 +1041,6 @@ extern "C" {
|
|||||||
#define MBEDTLS_PSA_WANT_KEY_TYPE_DH_KEY_PAIR_LEGACY
|
#define MBEDTLS_PSA_WANT_KEY_TYPE_DH_KEY_PAIR_LEGACY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Temporary internal migration helpers */
|
|
||||||
#if defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_KEY_PAIR_BASIC) || \
|
|
||||||
defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_KEY_PAIR_IMPORT) || \
|
|
||||||
defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_KEY_PAIR_EXPORT) || \
|
|
||||||
defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_KEY_PAIR_GENERATE) || \
|
|
||||||
defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_KEY_PAIR_DERIVE)
|
|
||||||
#define MBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_KEY_PAIR_LEGACY
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Temporary internal migration helpers */
|
/* Temporary internal migration helpers */
|
||||||
#if defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_RSA_KEY_PAIR_BASIC) || \
|
#if defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_RSA_KEY_PAIR_BASIC) || \
|
||||||
defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_RSA_KEY_PAIR_IMPORT) || \
|
defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_RSA_KEY_PAIR_IMPORT) || \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user