Add Zephyr config for RSA-3072
Signed-off-by: Fabio Utzig <utzig@apache.org>
diff --git a/boot/zephyr/include/config-rsa.h b/boot/zephyr/include/config-rsa.h
index 2e1153d..3e05692 100644
--- a/boot/zephyr/include/config-rsa.h
+++ b/boot/zephyr/include/config-rsa.h
@@ -66,7 +66,12 @@
/* Save RAM by adjusting to our exact needs */
#define MBEDTLS_ECP_MAX_BITS 2048
+
+#if (CONFIG_BOOT_SIGNATURE_TYPE_RSA_LEN == 3072)
+#define MBEDTLS_MPI_MAX_SIZE 384
+#else
#define MBEDTLS_MPI_MAX_SIZE 256
+#endif
#define MBEDTLS_SSL_MAX_CONTENT_LEN 1024