keys: Simplify key description management
authorDavid Howells <dhowells@redhat.com>
Wed, 26 Jun 2019 20:02:31 +0000 (21:02 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 26 Jun 2019 20:02:31 +0000 (21:02 +0100)
commitf771fde82051976a6fc0fd570f8b86de4a92124b
tree9721996d5d081b26f4c8a76fa275c01585030ba3
parent3b8c4a08a471d56ecaaca939c972fdf5b8255629
keys: Simplify key description management

Simplify key description management by cramming the word containing the
length with the first few chars of the description also.  This simplifies
the code that generates the index-key used by assoc_array.  It should speed
up key searching a bit too.

Signed-off-by: David Howells <dhowells@redhat.com>
include/linux/key.h
security/keys/internal.h
security/keys/key.c
security/keys/keyring.c
security/keys/persistent.c