Skip to content

Commit c0a4b94

Browse files
committed
Fix from review
1 parent b03a732 commit c0a4b94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wolfcrypt/src/rsa.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -564,9 +564,9 @@ int wc_FreeRsaKey(RsaKey* key)
564564
#endif
565565

566566
#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). */
567+
/* Forcezero all private key fields that are present in this build
568+
* configuration, since they may contain residual sensitive data even when
569+
* key->type is not RSA_PRIVATE (e.g., after a partial key decode failure). */
570570
#if defined(WOLFSSL_KEY_GEN) || defined(OPENSSL_EXTRA) || !defined(RSA_LOW_MEM)
571571
mp_forcezero(&key->u);
572572
mp_forcezero(&key->dQ);

0 commit comments

Comments
 (0)