mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 19:05:37 +01:00
Declare new config.h option MBEDTLS_SHA512_NO_SHA384
This commit is contained in:
parent
448d1cc854
commit
ad6cb11461
@ -1033,6 +1033,16 @@
|
||||
*/
|
||||
//#define MBEDTLS_SHA512_SMALLER
|
||||
|
||||
/**
|
||||
* \def MBEDTLS_SHA512_NO_SHA384
|
||||
*
|
||||
* Disable the SHA-384 option of the SHA-512 module. Use this to save some
|
||||
* code size on devices that don't use SHA-384.
|
||||
*
|
||||
* Uncomment to disable SHA-384
|
||||
*/
|
||||
//#define MBEDTLS_SHA512_NO_SHA384
|
||||
|
||||
/**
|
||||
* \def MBEDTLS_THREADING_ALT
|
||||
*
|
||||
|
@ -414,6 +414,9 @@ static const char * const features[] = {
|
||||
#if defined(MBEDTLS_SHA512_SMALLER)
|
||||
"MBEDTLS_SHA512_SMALLER",
|
||||
#endif /* MBEDTLS_SHA512_SMALLER */
|
||||
#if defined(MBEDTLS_SHA512_NO_SHA384)
|
||||
"MBEDTLS_SHA512_NO_SHA384",
|
||||
#endif /* MBEDTLS_SHA512_NO_SHA384 */
|
||||
#if defined(MBEDTLS_THREADING_ALT)
|
||||
"MBEDTLS_THREADING_ALT",
|
||||
#endif /* MBEDTLS_THREADING_ALT */
|
||||
|
@ -1132,6 +1132,14 @@ int query_config( const char *config )
|
||||
}
|
||||
#endif /* MBEDTLS_SHA512_SMALLER */
|
||||
|
||||
#if defined(MBEDTLS_SHA512_NO_SHA384)
|
||||
if( strcmp( "MBEDTLS_SHA512_NO_SHA384", config ) == 0 )
|
||||
{
|
||||
MACRO_EXPANSION_TO_STR( MBEDTLS_SHA512_NO_SHA384 );
|
||||
return( 0 );
|
||||
}
|
||||
#endif /* MBEDTLS_SHA512_NO_SHA384 */
|
||||
|
||||
#if defined(MBEDTLS_THREADING_ALT)
|
||||
if( strcmp( "MBEDTLS_THREADING_ALT", config ) == 0 )
|
||||
{
|
||||
|
@ -183,6 +183,7 @@ def include_in_full(name):
|
||||
'MBEDTLS_PSA_CRYPTO_SPM',
|
||||
'MBEDTLS_PSA_INJECT_ENTROPY',
|
||||
'MBEDTLS_RSA_NO_CRT',
|
||||
'MBEDTLS_SHA512_NO_SHA384',
|
||||
'MBEDTLS_TEST_NULL_ENTROPY',
|
||||
]:
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user