From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75728C072B5 for ; Tue, 21 May 2019 21:18:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4F2792182B for ; Tue, 21 May 2019 21:18:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727453AbfEUVSh (ORCPT ); Tue, 21 May 2019 17:18:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53522 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727156AbfEUVSh (ORCPT ); Tue, 21 May 2019 17:18:37 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B02A33079B93; Tue, 21 May 2019 21:18:36 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-170.rdu2.redhat.com [10.10.120.170]) by smtp.corp.redhat.com (Postfix) with ESMTP id 44D3260FE1; Tue, 21 May 2019 21:18:30 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <20190521100034.9651-1-omosnace@redhat.com> 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 Subject: Re: [PATCH] crypto: af_alg - implement keyring support MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29982.1558473509.1@warthog.procyon.org.uk> Date: Tue, 21 May 2019 22:18:29 +0100 Message-ID: <29983.1558473509@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Tue, 21 May 2019 21:18:37 +0000 (UTC) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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