AES: add config option for 128-bit keys
Add configuration options to support only 128-bit key lengths in AES
calculation.
diff --git a/programs/ssl/query_config.c b/programs/ssl/query_config.c
index 0c26921..379e016 100644
--- a/programs/ssl/query_config.c
+++ b/programs/ssl/query_config.c
@@ -2930,6 +2930,14 @@
}
#endif /* MBEDTLS_PK_SINGLE_TYPE */
+#if defined(MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH)
+ if( strcmp( "MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH", config ) == 0 )
+ {
+ MACRO_EXPANSION_TO_STR( MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH );
+ return( 0 );
+ }
+#endif /* MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH */
+
/* If the symbol is not found, return an error */
return( 1 );
}