Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6920604pxb; Wed, 17 Feb 2021 18:05:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1BTngnLp99cDqOze84QcW2VyxEDgl5KsPTPH3AhCgqxHOP7QDpn9sszbtNnjJSF4xZWmE X-Received: by 2002:a17:906:d8ae:: with SMTP id qc14mr1735941ejb.129.1613613924487; Wed, 17 Feb 2021 18:05:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613613924; cv=none; d=google.com; s=arc-20160816; b=mpa3Dj7T9m4trfvnDu4w86puvF45Oni8QCuhoAO4T6kRx+SYKpyQ/12CYRMjsqstkD X0SEEZQaQuLW5iKz/WqSTnR//z7lM2CX9zyS7enT7nN5LETyCV5quafYpOFvBvf0voKK bO8a1YcmvBsp+munkw6Su3YNi6U9//t+hCdCrA9f6WWIiJosgxi0XvWT8Kdm5bpHjcX3 TXLFS8/mQrNB+F3IrEC1H8zbefHgHHz0xwdFGUDcwy5ihWmSbGutIo/mLi1uCVXPqKdu hEYge+YQ26YAtNrTGs6nvzWFVxKQRF4shzVzQsu4kCcbWh6U8c2jbYFxVUKj41QXK81U zKbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=zquaWRJ0ayMxMhXv6P3KV+hxmWH6+9p52kQpG1epQfE=; b=hNp4u1G8gfFDhPz1jl6uo8SRAiij13JVynYxOy7iTXnIcmulMzUWjPDT1P+qhQ6/9w n2C521XIDo7ZtA3ajGPVx8UawvJVGaz6WSCiRsmusZZDFdgOqd/l+qLz4xAthIifRxT6 MtUcVjWJmvBpdMc8HPlWTyrkY3tdJ+lrm3r2gLxQPq7TsvmGDN5aTKrWCsEZAtJ/eEQz qQkGmDNdNQAfEibfCax+68Ssr+LwNOQAE5v2bD3Wb/nEdyUsKehzJdK4YhxjnpSnevt4 pg4/UxOfZ5xuw5ndHEneEjiBzkKL+blsP7RG21LQdrOOY8HUNiDJ7kq5alxGGHAZ5JBY xmEQ== 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 f23si2442210edt.604.2021.02.17.18.04.47; Wed, 17 Feb 2021 18:05:24 -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 S229745AbhBRCDK (ORCPT + 99 others); Wed, 17 Feb 2021 21:03:10 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:12615 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229708AbhBRCDJ (ORCPT ); Wed, 17 Feb 2021 21:03:09 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Dgybr5V08z168fr; Thu, 18 Feb 2021 10:00:56 +0800 (CST) Received: from [10.67.102.118] (10.67.102.118) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Thu, 18 Feb 2021 10:01:58 +0800 Subject: Re: [PATCH v2 3/3] crypto: hisilicon/sec - fixes shash test error To: Herbert Xu CC: , , , References: <1612692280-11386-1-git-send-email-liulongfang@huawei.com> <1612692280-11386-4-git-send-email-liulongfang@huawei.com> <20210210064328.GA15849@gondor.apana.org.au> From: liulongfang Message-ID: <0afaed85-eeb0-236c-817f-a0f9cf02c65a@huawei.com> Date: Thu, 18 Feb 2021 10:01:58 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20210210064328.GA15849@gondor.apana.org.au> Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.118] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2021/2/10 14:43, Herbert Xu Wrote: > On Sun, Feb 07, 2021 at 06:04:40PM +0800, Longfang Liu wrote: >> If the header file "crypto/internal/hash.h" not >> added, the allocation of crypto_tfm will fail when >> the shash algorithm calculates the hash >> through the software. >> >> Signed-off-by: Longfang Liu >> --- >> drivers/crypto/hisilicon/sec2/sec_crypto.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/crypto/hisilicon/sec2/sec_crypto.c b/drivers/crypto/hisilicon/sec2/sec_crypto.c >> index d2c4a2c..988faf7 100644 >> --- a/drivers/crypto/hisilicon/sec2/sec_crypto.c >> +++ b/drivers/crypto/hisilicon/sec2/sec_crypto.c >> @@ -7,6 +7,7 @@ >> #include >> #include >> #include >> +#include > > Please explain what exactly in this file needs this header file. > > As it stands you could just be hiding real bugs. > > Thanks, > The crypto_alloc_shash() interface in the header file will be used in the function sec_aead_ctx_init(), If this header file is not added, calling the interface crypto_alloc_shash() during the initialization of the aead algorithm will return an error. Thanks,