We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b03a732 commit c0a4b94Copy full SHA for c0a4b94
wolfcrypt/src/rsa.c
@@ -564,9 +564,9 @@ int wc_FreeRsaKey(RsaKey* key)
564
#endif
565
566
#ifndef WOLFSSL_RSA_PUBLIC_ONLY
567
- /* Always forcezero private key fields, since they may contain residual
568
- * sensitive data even when key->type is not RSA_PRIVATE (e.g., after a
569
- * partial key decode failure). */
+ /* Forcezero all private key fields that are present in this build
+ * configuration, since they may contain residual sensitive data even when
+ * key->type is not RSA_PRIVATE (e.g., after a partial key decode failure). */
570
#if defined(WOLFSSL_KEY_GEN) || defined(OPENSSL_EXTRA) || !defined(RSA_LOW_MEM)
571
mp_forcezero(&key->u);
572
mp_forcezero(&key->dQ);
0 commit comments