public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH 1/2] dpp: zero nonces/keys on dpp_reset
@ 2021-12-22 23:00 James Prestwood
  0 siblings, 0 replies; 2+ messages in thread
From: James Prestwood @ 2021-12-22 23:00 UTC (permalink / raw)
  To: iwd 

[-- Attachment #1: Type: text/plain, Size: 554 bytes --]

---
 src/dpp.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/dpp.c b/src/dpp.c
index 48343445..941c3f07 100644
--- a/src/dpp.c
+++ b/src/dpp.c
@@ -163,6 +163,12 @@ static void dpp_reset(struct dpp_sm *dpp)
 
 	dpp->state = DPP_STATE_NOTHING;
 
+	explicit_bzero(dpp->r_nonce, dpp->nonce_len);
+	explicit_bzero(dpp->i_nonce, dpp->nonce_len);
+	explicit_bzero(dpp->e_nonce, dpp->nonce_len);
+	explicit_bzero(dpp->ke, dpp->key_len);
+	explicit_bzero(dpp->k2, dpp->key_len);
+
 	dpp_free_auth_data(dpp);
 }
 
-- 
2.31.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] dpp: zero nonces/keys on dpp_reset
@ 2021-12-22 23:06 Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2021-12-22 23:06 UTC (permalink / raw)
  To: iwd 

[-- Attachment #1: Type: text/plain, Size: 175 bytes --]

Hi James,

On 12/22/21 17:00, James Prestwood wrote:
> ---
>   src/dpp.c | 6 ++++++
>   1 file changed, 6 insertions(+)
> 

Both applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-22 23:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-22 23:06 [PATCH 1/2] dpp: zero nonces/keys on dpp_reset Denis Kenzior
  -- strict thread matches above, loose matches on Subject: below --
2021-12-22 23:00 James Prestwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox