Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10370434ybi; Thu, 11 Jul 2019 04:14:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyR5GPln3ObE/Fg5+rnWTIiuAnvYg1Ur92Ayio3dNg6QzxK/rnqeccSXXpUBuOI9suUSqux X-Received: by 2002:a17:90a:9505:: with SMTP id t5mr4199517pjo.96.1562843642360; Thu, 11 Jul 2019 04:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562843642; cv=none; d=google.com; s=arc-20160816; b=lP0UEvCnZJ8MGFtHI7OtqODiVPNhK8nepEaq9r3BPdbHfmxfuBkJrl9MjitOrKFBDR G8T1oDEtci4J6eAX9aITm4wyQ5tTmWAD/wM0qkHp8N3j5FqZpF5gvNAJuVR5pRhLqsFs tHSyNNnYGGb2FS8YeMV/TtPah8CPANpZnuuD9HDBKHtT2sug+yqYJP72TVLJgA1r8L/P W9I/D/cQdAGv9mMvVPjXbbmCmyKB0176VoOMO4D5ZpTyz0PxnzDXaqqbc3ZKhaa5/fz+ 7UYRt+B31ON0MdxccbzIcLnI8rOIknHI35tvbWkIAv14/BI63duEhBXV32zJ2GU5KoOn poZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=odNp4hqbU4ZFfqareB1SPxCAXfTJrgEhXFLx1fWlico=; b=h/N00GP0d5q+Yrmo87zL4ProIrMDwAFNwRtTGdol9wyz9nyocjyAdHYdL0/EDyubMd 1DqAP+HmXG3cTr83MoIUuVRgtqZqAoPIAXJbaM0afR3XfmvbuLcppAfXRHtlNkeLd9Wn ChjhXghJyI+vYPZ/ES7PWZggtX5y06BB1xQB+kZXsPXp9ilLirmdRB1YlOQsk+snfoC7 VvUbZlMTA93MB7kHeOMXWI7ybIH7iqxE1MeYFNzIJtR/Kmcx3MuEjrrrW3Pjv7iMJ9rl GEtrBQ0g5xGjatePzEjxDuYRihk8rv1pkvnZ0ujg3v3UeJa2Xg4ni/VDotC9vHuMM8A3 jrCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si4652060pld.293.2019.07.11.04.13.40; Thu, 11 Jul 2019 04:14:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728055AbfGKLKT (ORCPT + 99 others); Thu, 11 Jul 2019 07:10:19 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:39668 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727865AbfGKLKT (ORCPT ); Thu, 11 Jul 2019 07:10:19 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1hlWxr-0001EV-Au; Thu, 11 Jul 2019 19:10:15 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1hlWxn-0006ie-Mw; Thu, 11 Jul 2019 19:10:11 +0800 Date: Thu, 11 Jul 2019 19:10:11 +0800 From: Herbert Xu To: Kalyani Akula Cc: Stephan Mueller , "keyrings@vger.kernel.org" , "davem@davemloft.net" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Sarat Chand Savitala Subject: Re: [RFC PATCH 4/5] crypto: Adds user space interface for ALG_SET_KEY_TYPE Message-ID: <20190711111011.x3qzukon2zqnsgac@gondor.apana.org.au> References: <1547708541-23730-1-git-send-email-kalyani.akula@xilinx.com> <18759853.IUaQuE38eh@tauon.chronox.de> <2554415.t45IJDmies@tauon.chronox.de> <20190610063501.u3q2k2vgytvknxs3@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Jul 11, 2019 at 09:25:38AM +0000, Kalyani Akula wrote: > > How about using same interface to distinguish between the User supplied key Vs HW key selection based on key_len parameter. As long as you use the paes name instead of aes you can do whatever you want with the key encoding. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt