From: Tadeusz Struk Subject: Re: [PATCH v8 6/6] crypto: AF_ALG - add support for key_id Date: Fri, 8 Jul 2016 10:26:55 -0700 Message-ID: <1184c5f4-5a87-452f-dd29-ab207403f677@intel.com> References: <146672252642.23101.15972023870303797249.stgit@tstruk-mobl1.ra.intel.com> <146672255872.23101.10938182451423661314.stgit@tstruk-mobl1.ra.intel.com> <783d7868-6aae-40da-5df6-6e41ca2284fc@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: dhowells@redhat.com, herbert@gondor.apana.org.au, smueller@chronox.de, linux-api@vger.kernel.org, marcel@holtmann.org, linux-kernel@vger.kernel.org, keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, dwmw2@infradead.org, davem@davemloft.net To: Mat Martineau Return-path: Received: from mga04.intel.com ([192.55.52.120]:45246 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755200AbcGHR05 (ORCPT ); Fri, 8 Jul 2016 13:26:57 -0400 In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-ID: On 07/08/2016 09:38 AM, Mat Martineau wrote: > Are the inputs and outputs defined for ALG_OP_VERIFY in SET_KEY mode > going to work for hardware keys (like TPM) in SET_KEY_ID mode? That's > needed if the verify SET_KEY_ID mode is to be added later. Yes, we will just need to change the verify_signature() in public_key.c to be consistent with the rest of handlers. What we need really is the src (encrypted input), key (or key id), and an output buffer where we can copy the result to. Thanks, -- TS