Merge pull request #178 from mpg/sha512-smaller
New config.h option to make SHA-512 smaller
This commit is contained in:
commit
f66e7ea7f3
4 changed files with 74 additions and 36 deletions
programs/test
|
@ -1116,6 +1116,14 @@ int query_config( const char *config )
|
|||
}
|
||||
#endif /* MBEDTLS_SHA256_SMALLER */
|
||||
|
||||
#if defined(MBEDTLS_SHA512_SMALLER)
|
||||
if( strcmp( "MBEDTLS_SHA512_SMALLER", config ) == 0 )
|
||||
{
|
||||
MACRO_EXPANSION_TO_STR( MBEDTLS_SHA512_SMALLER );
|
||||
return( 0 );
|
||||
}
|
||||
#endif /* MBEDTLS_SHA512_SMALLER */
|
||||
|
||||
#if defined(MBEDTLS_THREADING_ALT)
|
||||
if( strcmp( "MBEDTLS_THREADING_ALT", config ) == 0 )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue