mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Add configuration flag MBEDTLS_PSA_CRYPTO_DRIVERS
Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
This commit is contained in:
@ -1329,6 +1329,17 @@
|
|||||||
*/
|
*/
|
||||||
#define MBEDTLS_PKCS1_V21
|
#define MBEDTLS_PKCS1_V21
|
||||||
|
|
||||||
|
/** \def MBEDTLS_PSA_CRYPTO_DRIVERS
|
||||||
|
*
|
||||||
|
* Enable support for the experimental PSA crypto driver interface.
|
||||||
|
*
|
||||||
|
* Requires: MBEDTLS_PSA_CRYPTO_C.
|
||||||
|
*
|
||||||
|
* \warning This interface is experimental and may change or be removed
|
||||||
|
* without notice.
|
||||||
|
*/
|
||||||
|
//#define MBEDTLS_PSA_CRYPTO_DRIVERS
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_PSA_CRYPTO_SPM
|
* \def MBEDTLS_PSA_CRYPTO_SPM
|
||||||
*
|
*
|
||||||
|
@ -435,6 +435,9 @@ static const char * const features[] = {
|
|||||||
#if defined(MBEDTLS_PKCS1_V21)
|
#if defined(MBEDTLS_PKCS1_V21)
|
||||||
"MBEDTLS_PKCS1_V21",
|
"MBEDTLS_PKCS1_V21",
|
||||||
#endif /* MBEDTLS_PKCS1_V21 */
|
#endif /* MBEDTLS_PKCS1_V21 */
|
||||||
|
#if defined(MBEDTLS_PSA_CRYPTO_DRIVERS)
|
||||||
|
"MBEDTLS_PSA_CRYPTO_DRIVERS",
|
||||||
|
#endif /* MBEDTLS_PSA_CRYPTO_DRIVERS */
|
||||||
#if defined(MBEDTLS_PSA_CRYPTO_SPM)
|
#if defined(MBEDTLS_PSA_CRYPTO_SPM)
|
||||||
"MBEDTLS_PSA_CRYPTO_SPM",
|
"MBEDTLS_PSA_CRYPTO_SPM",
|
||||||
#endif /* MBEDTLS_PSA_CRYPTO_SPM */
|
#endif /* MBEDTLS_PSA_CRYPTO_SPM */
|
||||||
|
@ -1216,6 +1216,14 @@ int query_config( const char *config )
|
|||||||
}
|
}
|
||||||
#endif /* MBEDTLS_PKCS1_V21 */
|
#endif /* MBEDTLS_PKCS1_V21 */
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_PSA_CRYPTO_DRIVERS)
|
||||||
|
if( strcmp( "MBEDTLS_PSA_CRYPTO_DRIVERS", config ) == 0 )
|
||||||
|
{
|
||||||
|
MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_CRYPTO_DRIVERS );
|
||||||
|
return( 0 );
|
||||||
|
}
|
||||||
|
#endif /* MBEDTLS_PSA_CRYPTO_DRIVERS */
|
||||||
|
|
||||||
#if defined(MBEDTLS_PSA_CRYPTO_SPM)
|
#if defined(MBEDTLS_PSA_CRYPTO_SPM)
|
||||||
if( strcmp( "MBEDTLS_PSA_CRYPTO_SPM", config ) == 0 )
|
if( strcmp( "MBEDTLS_PSA_CRYPTO_SPM", config ) == 0 )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user