lkml.org 
[lkml]   [2014]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] random: add and use memzero_explicit() for clearing data
On 08/25/2014 10:35 PM, Alexey Dobriyan wrote:
> On Mon, Aug 25, 2014 at 10:01:39PM +0200, Daniel Borkmann wrote:
>> +void memzero_explicit(void *s, size_t count)
>> +{
>> + memset(s, 0, count);
>> + OPTIMIZER_HIDE_VAR(s);
>> +}
>
> BSD seems to name it explicit_bzero().

Sure, that's what I wrote in the commit log. But we don't have
bzero(), and I think the name is more clear and conform to
mem*() API.

Best,

Daniel


\
 
 \ /
  Last update: 2014-08-25 23:01    [W:0.059 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site