summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/hammer/board.h3
-rw-r--r--board/hatch_fp/board.h5
-rw-r--r--board/nocturne_fp/board.h5
-rw-r--r--board/nucleo-h743zi/board.h5
4 files changed, 11 insertions, 7 deletions
diff --git a/board/hammer/board.h b/board/hammer/board.h
index 5eca65a6f9..d1a7af0bfe 100644
--- a/board/hammer/board.h
+++ b/board/hammer/board.h
@@ -287,9 +287,10 @@
/* Sign and switch to RW partition on boot. */
#define CONFIG_RWSIG
#define CONFIG_RSA
+#endif
+
#define CONFIG_RSA_KEY_SIZE 3072
#define CONFIG_RSA_EXPONENT_3
-#endif
#define CONFIG_SHA256
#ifdef SECTION_IS_RO
diff --git a/board/hatch_fp/board.h b/board/hatch_fp/board.h
index f9999a04d2..a5f1ad5725 100644
--- a/board/hatch_fp/board.h
+++ b/board/hatch_fp/board.h
@@ -149,10 +149,11 @@
#else /* SECTION_IS_RO */
/* RO verifies the RW partition signature */
#define CONFIG_RSA
-#define CONFIG_RSA_KEY_SIZE 3072
-#define CONFIG_RSA_EXPONENT_3
#define CONFIG_RWSIG
#endif
+
+#define CONFIG_RSA_KEY_SIZE 3072
+#define CONFIG_RSA_EXPONENT_3
#define CONFIG_RWSIG_TYPE_RWSIG
/* RW does slow compute, RO does slow flash erase. */
diff --git a/board/nocturne_fp/board.h b/board/nocturne_fp/board.h
index 71283db2af..f1975d582d 100644
--- a/board/nocturne_fp/board.h
+++ b/board/nocturne_fp/board.h
@@ -131,10 +131,11 @@
#else /* SECTION_IS_RO */
/* RO verifies the RW partition signature */
#define CONFIG_RSA
-#define CONFIG_RSA_KEY_SIZE 3072
-#define CONFIG_RSA_EXPONENT_3
#define CONFIG_RWSIG
#endif
+
+#define CONFIG_RSA_KEY_SIZE 3072
+#define CONFIG_RSA_EXPONENT_3
#define CONFIG_RWSIG_TYPE_RWSIG
/* RW does slow compute, RO does slow flash erase. */
diff --git a/board/nucleo-h743zi/board.h b/board/nucleo-h743zi/board.h
index 435b8a444b..3aa6b89066 100644
--- a/board/nucleo-h743zi/board.h
+++ b/board/nucleo-h743zi/board.h
@@ -169,11 +169,12 @@
#else /* !SECTION_IS_RW */
/* RO verifies the RW partition signature */
# define CONFIG_RSA
-# define CONFIG_RSA_KEY_SIZE 3072
-# define CONFIG_RSA_EXPONENT_3
# define CONFIG_RWSIG
#endif /* SECTION_IS_RW */
+#define CONFIG_RSA_KEY_SIZE 3072
+#define CONFIG_RSA_EXPONENT_3
+
/*
* We do not use any "locally" generated entropy: this is normally used
* to add local entropy when the main source of entropy is remote.