Skip to content

Commit

Permalink
zephyr: Configure mbed TLS for PSS instead of V1.5
Browse files Browse the repository at this point in the history
Although MCUboot has used PKCS#1 v2.1 (PSS) for some time now, the mbed
TLS config file was calling out v1.5.  This compiled because MCUboot
implements its own specialized version of the signature check, and only
needs the underlying primitives from mbed TLS.  (The general code in
mbed TLS is quite a bit larger).

To make it clear that we are always using PSS, change the mbed TLS
configuration to call this out explicitly.

Signed-off-by: David Brown <david.brown@linaro.org>
  • Loading branch information
d3zd3z committed Feb 23, 2018
1 parent 9f7c3d2 commit 3f9ec90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot/zephyr/include/config-boot.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

#ifdef MCUBOOT_SIGN_RSA
#define MBEDTLS_RSA_C
#define MBEDTLS_PKCS1_V15
#define MBEDTLS_PKCS1_V21
#endif

/* mbed TLS modules */
Expand Down

0 comments on commit 3f9ec90

Please sign in to comment.