Skip to content

Commit 196d106

Browse files
committed
M467: Disable SCAP in RSA H/W
This is to follow designer's resolution.
1 parent 087daea commit 196d106

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

connectivity/drivers/mbedtls/TARGET_NUVOTON/TARGET_M460/rsa/crypto_rsa_hw.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
* 1. For non-CRT+SCAP (excluding CRT+SCAP) mode, DMA buffer for MADDR6 must be key length plus 128 bits.
5151
* 2. DMA buffer must be 4-word aligned, or RSA H/W will trap.
5252
* 3. CRT is not well-tested yet, esp with 4096 key bits.
53+
* 4. Following designer's resolution, disable SCAP.
5354
*/
5455

5556
/* RSA context for DMA */
@@ -224,6 +225,9 @@ int crypto_rsa_crypt(mbedtls_rsa_context *ctx,
224225
size_t olen;
225226
uint32_t keybits;
226227

228+
/* NOTE: Check above RSA H/W comment for disabling blinding */
229+
blinding = false;
230+
227231
#if defined(NU_CRYPTO_RSA_ENABLE_DEBUG)
228232
mbedtls_printf("[CRPT][RSA] decrypt=%d, crt=%d, blinding=%d\n", decrypt, crt, blinding);
229233
#endif

0 commit comments

Comments
 (0)