File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 982
982
*/
983
983
//#define MBEDTLS_SHA256_SMALLER
984
984
985
+ /**
986
+ * \def MBEDTLS_SHA512_SMALLER
987
+ *
988
+ * Enable an implementation of SHA-512 that has lower ROM footprint but also
989
+ * lower performance.
990
+ *
991
+ * Uncomment to enable the smaller implementation of SHA512.
992
+ */
993
+ //#define MBEDTLS_SHA512_SMALLER
994
+
985
995
/**
986
996
* \def MBEDTLS_THREADING_ALT
987
997
*
Original file line number Diff line number Diff line change @@ -405,6 +405,9 @@ static const char *features[] = {
405
405
#if defined(MBEDTLS_SHA256_SMALLER )
406
406
"MBEDTLS_SHA256_SMALLER" ,
407
407
#endif /* MBEDTLS_SHA256_SMALLER */
408
+ #if defined(MBEDTLS_SHA512_SMALLER )
409
+ "MBEDTLS_SHA512_SMALLER" ,
410
+ #endif /* MBEDTLS_SHA512_SMALLER */
408
411
#if defined(MBEDTLS_THREADING_ALT )
409
412
"MBEDTLS_THREADING_ALT" ,
410
413
#endif /* MBEDTLS_THREADING_ALT */
Original file line number Diff line number Diff line change @@ -1109,6 +1109,14 @@ int query_config( const char *config )
1109
1109
}
1110
1110
#endif /* MBEDTLS_SHA256_SMALLER */
1111
1111
1112
+ #if defined(MBEDTLS_SHA512_SMALLER )
1113
+ if ( strcmp ( "MBEDTLS_SHA512_SMALLER" , config ) == 0 )
1114
+ {
1115
+ MACRO_EXPANSION_TO_STR ( MBEDTLS_SHA512_SMALLER );
1116
+ return ( 0 );
1117
+ }
1118
+ #endif /* MBEDTLS_SHA512_SMALLER */
1119
+
1112
1120
#if defined(MBEDTLS_THREADING_ALT )
1113
1121
if ( strcmp ( "MBEDTLS_THREADING_ALT" , config ) == 0 )
1114
1122
{
You can’t perform that action at this time.
0 commit comments