Exclude SHA-224 from some reduced config examples

Besides the value as an example, this is usefull for testing the option, via
test-ref-configs.pl (which is included in all.sh).
This commit is contained in:
Manuel Pégourié-Gonnard 2019-09-02 14:57:08 +02:00
parent efd344894d
commit 81ed9fb277
3 changed files with 9 additions and 0 deletions

View file

@ -55,6 +55,9 @@
#define MBEDTLS_SSL_SRV_C
#define MBEDTLS_SSL_TLS_C
/* Save ROM by excluded SHA-2 variant that we don't need */
#define MBEDTLS_SHA256_NO_SHA224
/* Save RAM at the expense of ROM */
#define MBEDTLS_AES_ROM_TABLES

View file

@ -78,6 +78,9 @@
#define MBEDTLS_CERTS_C
#define MBEDTLS_PEM_PARSE_C
/* Save ROM by excluded SHA-2 variant that we don't need */
#define MBEDTLS_SHA256_NO_SHA224
/* Save RAM at the expense of ROM */
#define MBEDTLS_AES_ROM_TABLES

View file

@ -88,6 +88,9 @@
#define MBEDTLS_ECP_MAX_BITS 256
#define MBEDTLS_MPI_MAX_SIZE 32 // 256 bits is 32 bytes
/* Save ROM by excluded SHA-2 variant that we don't need */
#define MBEDTLS_SHA256_NO_SHA224
/* Save ROM and a few bytes of RAM by specifying our own ciphersuite list */
#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8