From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Date: Tue, 21 May 2019 21:18:29 +0000 Subject: Re: [PATCH] crypto: af_alg - implement keyring support Message-Id: <29983.1558473509@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit List-Id: References: <20190521100034.9651-1-omosnace@redhat.com> In-Reply-To: To: Marcel Holtmann Cc: dhowells@redhat.com, Ondrej Mosnacek , linux-crypto@vger.kernel.org, Herbert Xu , keyrings@vger.kernel.org, Stephan Mueller , Milan Broz , Ondrej Kozina , Daniel Zatovic Marcel Holtmann wrote: > why use the description instead the actual key id? I wonder if a single > socket option and a struct providing the key type and key id might be more > useful. If the key becomes invalid in some way, you can call request_key() again if you have the description to get a new key. This is how afs and af_rxrpc do things on the client side. David