mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-04 22:19:05 +00:00
Gate entropy injection through a dedicated configuration option
Entropy injection has specific testing requirements. Therefore it should depend on a specific option.
This commit is contained in:
parent
6bf4baef95
commit
e3dbdd8d90
11 changed files with 125 additions and 31 deletions
|
|
@ -1194,6 +1194,14 @@ int query_config( const char *config )
|
|||
}
|
||||
#endif /* MBEDTLS_PSA_CRYPTO_SPM */
|
||||
|
||||
#if defined(MBEDTLS_PSA_INJECT_ENTROPY)
|
||||
if( strcmp( "MBEDTLS_PSA_INJECT_ENTROPY", config ) == 0 )
|
||||
{
|
||||
MACRO_EXPANSION_TO_STR( MBEDTLS_PSA_INJECT_ENTROPY );
|
||||
return( 0 );
|
||||
}
|
||||
#endif /* MBEDTLS_PSA_INJECT_ENTROPY */
|
||||
|
||||
#if defined(MBEDTLS_RSA_NO_CRT)
|
||||
if( strcmp( "MBEDTLS_RSA_NO_CRT", config ) == 0 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue