mirror of https://github.com/ARMmbed/mbed-os.git
M467: Disable SCAP in RSA H/W
This is to follow designer's resolution.pull/15337/head
parent
087daeacee
commit
196d10662e
|
@ -50,6 +50,7 @@
|
||||||
* 1. For non-CRT+SCAP (excluding CRT+SCAP) mode, DMA buffer for MADDR6 must be key length plus 128 bits.
|
* 1. For non-CRT+SCAP (excluding CRT+SCAP) mode, DMA buffer for MADDR6 must be key length plus 128 bits.
|
||||||
* 2. DMA buffer must be 4-word aligned, or RSA H/W will trap.
|
* 2. DMA buffer must be 4-word aligned, or RSA H/W will trap.
|
||||||
* 3. CRT is not well-tested yet, esp with 4096 key bits.
|
* 3. CRT is not well-tested yet, esp with 4096 key bits.
|
||||||
|
* 4. Following designer's resolution, disable SCAP.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* RSA context for DMA */
|
/* RSA context for DMA */
|
||||||
|
@ -224,6 +225,9 @@ int crypto_rsa_crypt(mbedtls_rsa_context *ctx,
|
||||||
size_t olen;
|
size_t olen;
|
||||||
uint32_t keybits;
|
uint32_t keybits;
|
||||||
|
|
||||||
|
/* NOTE: Check above RSA H/W comment for disabling blinding */
|
||||||
|
blinding = false;
|
||||||
|
|
||||||
#if defined(NU_CRYPTO_RSA_ENABLE_DEBUG)
|
#if defined(NU_CRYPTO_RSA_ENABLE_DEBUG)
|
||||||
mbedtls_printf("[CRPT][RSA] decrypt=%d, crt=%d, blinding=%d\n", decrypt, crt, blinding);
|
mbedtls_printf("[CRPT][RSA] decrypt=%d, crt=%d, blinding=%d\n", decrypt, crt, blinding);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue