lkml.org 
[lkml]   [2017]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v7 2/2] security/keys: rewrite all of big_key crypto
On Mon, Sep 25, 2017 at 4:43 PM, David Howells <dhowells@redhat.com> wrote:
> Jason A. Donenfeld <Jason@zx2c4.com> wrote:
>
>> + /* no ->update(); don't add it without changing big_key_crypt() nonce */
>
> Should update be a problem. It's should be a complete payload replacement -
> kind of like unlink and add, but keeping the same key ID and description.

Not sure I parsed your message correctly, but that comment there was a
suggestion from Eric several months ago when I first posted it. The
idea is that the key shouldn't be reused with the same nonce, so in
case somebody ambitious comes along and tries to add an .update
function, they'll be reminded to take this into account. Alternatively
they might choose to just generate a new key, which is fine too.
Either way, it's a useful warning to have in place.

\
 
 \ /
  Last update: 2017-09-25 18:39    [W:0.054 / U:0.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site