From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752719AbbFPCWC (ORCPT ); Mon, 15 Jun 2015 22:22:02 -0400 Received: from mga11.intel.com ([192.55.52.93]:56691 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752384AbbFPCVw (ORCPT ); Mon, 15 Jun 2015 22:21:52 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,622,1427785200"; d="scan'208";a="588487857" Message-ID: <557F883C.5040207@intel.com> Date: Mon, 15 Jun 2015 19:21:48 -0700 From: Tadeusz Struk User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Herbert Xu CC: linux-kernel@vger.kernel.org, keescook@chromium.org, jwboyer@redhat.com, smueller@chronox.de, richard@nod.at, steved@redhat.com, qat-linux@intel.com, dhowells@redhat.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 Subject: Re: [PATCH RFC v5 2/4] crypto: add PKE API References: <20150615201831.15697.57738.stgit@tstruk-mobl1> <20150615201842.15697.59701.stgit@tstruk-mobl1> <20150615235954.GC16562@gondor.apana.org.au> In-Reply-To: <20150615235954.GC16562@gondor.apana.org.au> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/15/2015 04:59 PM, Herbert Xu wrote: >> > +struct crypto_akcipher { >> > + void *key; > Having a void * pointer here is useless. The normal way of doing > it is to place the key into the tfm context. I thought that the ctx needs to be available for implementations to store private data. This way we can allocate and store any type of key in the _parse_key() helper and still have the cxt available for implementations to use for their stuff (e.g. HW context).