lkml.org 
[lkml]   [2020]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v2 2/2] crypto: Remove unnecessary memzero_explicit()
    From
    Date
    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.


    \
     
     \ /
      Last update: 2020-04-14 21:58    [W:2.070 / U:0.100 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site