Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp495764pxb; Thu, 21 Jan 2021 12:06:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrPbCUXMY/ENKtKaFx78OnTbIO9XGAq+un4+nblT/7llNS2Q/dM/iRlooZzvUUFlVAjGuW X-Received: by 2002:a05:6402:35d6:: with SMTP id z22mr663177edc.58.1611259560976; Thu, 21 Jan 2021 12:06:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611259560; cv=none; d=google.com; s=arc-20160816; b=qyNWvHWXjBAcoBMKnPFjCwvgfSEwrZ57njCh0WFj0dXfSSmbVGFmQKoT2pszyQHAt3 nLP7txJhTU3bQAjJjOfsatSt1zKXbCcISRPnYPKG+Q/3jH/i1c7ddX+v6QjKZ3qtORyb PFRgh1wA56Kt7YUhgEgNWsSUZMcLIm4LVXb0Moze8B2aqiLDmw7WqP690RKh9oE837OH 8UKYVzxrGUK4iJYoGv2cYru8JEE5aUxctymwlP3F3o9ZsvfX/I9Xs/b9ECz8OTjP3S0X uZp0O8F+unmuFqkZuYZ0eeyVU9gkZYvBuc/MPzX3DiVA1ZBepyNT0uy+tb0IxO8aWllS yyTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=qqWUYx+eKTrASAtTFYY7hNii+tu9H4hLTquyrC/qDis=; b=d3YOKFP6/uu96xoSHqcSS1AF/7U6RERXpUF5O9LrpnAO6IpFO2Yc4sqnavS3KiKwCk 0LLsfpyChN5gbR00fnd3st079dxv5bwXP/HCglkyFZwr2ZroPdEaUspqIao+xasYcMRi eSeGHTpRoZI80KLbXMOOSLdmr/J8Ac9dYHFCStOX6n9TglQNkh/9GK/Qi6ieE+4IYmSn IinpPA/0SQqfMgCLA+3JLzfj/jtapvJHawll1wx8wMuQ+vvgGUejjv0VV5WUUPeZuRcM QCoQHRCRLtq9BuULvNJWnakeUu2WB59wJW2CaxoNqda2JXAL2lYqWgClnxXCcr6uTqAZ oRTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f27si2126733eje.437.2021.01.21.12.05.27; Thu, 21 Jan 2021 12:06:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726661AbhAUUEk (ORCPT + 99 others); Thu, 21 Jan 2021 15:04:40 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:51784 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726674AbhAUUEA (ORCPT ); Thu, 21 Jan 2021 15:04:00 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1l2gAT-0007bn-Je; Fri, 22 Jan 2021 07:02:58 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 22 Jan 2021 07:02:57 +1100 Date: Fri, 22 Jan 2021 07:02:57 +1100 From: Herbert Xu To: "Alessandrelli, Daniele" Cc: "ardb@kernel.org" , "Khurana, Prabhjot" , "Reshetova, Elena" , "davem@davemloft.net" , "devicetree@vger.kernel.org" , "mgross@linux.intel.com" , "linux-crypto@vger.kernel.org" , "robh+dt@kernel.org" Subject: Re: [RFC PATCH 0/6] Keem Bay OCS ECC crypto driver Message-ID: <20210121200257.GB27184@gondor.apana.org.au> References: <20210104113148.GA20575@gondor.apana.org.au> <7ae7890f52226e75bf9e368808d6377e8c5efc2d.camel@intel.com> <711536383d5e829bd128a41e1a56ae50399b6c26.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <711536383d5e829bd128a41e1a56ae50399b6c26.camel@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Jan 21, 2021 at 04:13:51PM +0000, Alessandrelli, Daniele wrote: > > As expected, the second implementation does not pass self-tests and > crypto_alloc_kpp() returns -ELIBBAD when trying to allocate it, but > I've seen that I can avoid the error (and have it allocated properly) > by passing the CRYPTO_ALG_TESTED flag in the 'type' argument, like > below: Did you set your algorithm's name to ecdh? I think Ard was suggesting you to not do that. As long as you're not using the same name as a recognised algorithm, then you won't need to pass any self-tests at all. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt