[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-wpan
Subject:    Re: [PATCH v2 2/2] crypto: Remove unnecessary memzero_explicit()
From:       Joe Perches <joe () perches ! com>
Date:       2020-04-14 19:44:49
Message-ID: 2a58f592879cf67b4c6b8e859ce87e1f9652902a.camel () perches ! com
[Download RAW message or body]

On Tue, 2020-04-14 at 15:37 -0400, Waiman Long wrote:
> OK, I can change it to clear the key length when the allocation failed
> which isn't likely.


Perhaps:

	kfree_sensitive(op->key);
	op->key = NULL;
	op->keylen = 0;

but I don't know that it impacts any possible state.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic