From: Herbert Xu Subject: Re: [PATCH RFC v2 1/2] crypto: add PKE API Date: Tue, 12 May 2015 09:21:59 +0800 Message-ID: <20150512012158.GA13237@gondor.apana.org.au> References: <20150511062421.GA2266@gondor.apana.org.au> <20150506193643.9329.75351.stgit@tstruk-mobl1> <20150506193648.9329.27232.stgit@tstruk-mobl1> <11243.1431351927@warthog.procyon.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Tadeusz Struk , linux-kernel@vger.kernel.org, keescook@chromium.org, jwboyer@redhat.com, richard@nod.at, steved@redhat.com, qat-linux@intel.com, linux-crypto@vger.kernel.org, james.l.morris@oracle.com, jkosina@suse.cz, zohar@linux.vnet.ibm.com, davem@davemloft.net, vgoyal@redhat.com To: David Howells Return-path: Received: from helcar.hengli.com.au ([209.40.204.226]:53210 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751413AbbELBWQ (ORCPT ); Mon, 11 May 2015 21:22:16 -0400 Content-Disposition: inline In-Reply-To: <11243.1431351927@warthog.procyon.org.uk> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Mon, May 11, 2015 at 02:45:27PM +0100, David Howells wrote: > > What if the fallback doesn't exist? For instance, a H/W contained key is > specifically limited to, say, just sign/verify and the not permitted to be > used for encrypt/decrypt. How do you provide a fallback given you can't get > at the key? That's a transform with a specific key. I don't see why such a piece of hardware would even need to be exposed through the crypto API which is about generic implementations that can take any arbitrary key. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt