Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp647425imm; Tue, 15 May 2018 07:09:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoqn+2xRqzVqkaHavaLjPFkYJi9MoOMSAURt1w2ZoVcDz7IXQdSoelS2faboFEAHwEanLTS X-Received: by 2002:a62:dc4e:: with SMTP id t75-v6mr15198267pfg.139.1526393381492; Tue, 15 May 2018 07:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526393381; cv=none; d=google.com; s=arc-20160816; b=kOnPEmF/SRrPELB95syxqUwBTBTjSuCZSGHnlbCgFCX2nuGiI2/5KUyd/qh+Qm/xZ3 nWW1FGug7lqS8Au9pZdnM8+Bvbr8YoybPg8AlrGAYhGVQsgKQZRuQMOD+YSpQO8TW1t+ SLmFzMnEbVWDtmAbUPZYLEfxkxjZjB4Hh8bYMbk9jl/xzDNOzdICxhhAHrLEk0XzTTxm 47raACyKx9AGpxXzMBxG0N2ZQLwR0vADaQ2DU0Hl7Oa7WhSwLlqMxAQ21CcmQNn4Swi4 gX4kMVh8Q/lGhYX7afs7oooqM4YhwNHFVvwLzaoMwJnWR/Zt1LdUgc0PTuD5sTp1tF+U QBqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject :arc-authentication-results; bh=S8jan7W+DmzeXQ+pNIDG43IZ1Szh6zz7CFmGOmoNRss=; b=dagGEtvHeBSub7bmVh4uF5krRPVjm3jb82x4VjQUVw6+qukpuFP8GPj1kpCO4tv7lB ax7VAka+HRRVETdE4D2sgwQL0wLjLunQZ108nxH400V5cEZtJFZPd7RnRyqnPHWkEE1y FUxcKJgX0pL3qc4/KJ8n6umGFEEfjitcOEix+/RH2l9kEi20vevOOXZ1emvJNpYt6mJv 7C+UX53yF4eCikUXLlzDofeRz1t7D7fWGUcGwvSuW0wwjhT4fEO9Uab0AFzGY2HvDfic 595C+mHuu71eHZ+Kr19oYIxYHdPuHMTf18nomIGMkYdEouC527OsdrTbACMj1WvIo50w R1oA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a7-v6si98886pgv.47.2018.05.15.07.09.08; Tue, 15 May 2018 07:09:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753909AbeEONxR (ORCPT + 99 others); Tue, 15 May 2018 09:53:17 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:38492 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753893AbeEONxO (ORCPT ); Tue, 15 May 2018 09:53:14 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4FDlnib001152 for ; Tue, 15 May 2018 09:53:14 -0400 Received: from e18.ny.us.ibm.com (e18.ny.us.ibm.com [129.33.205.208]) by mx0b-001b2d01.pphosted.com with ESMTP id 2hyy6fw8dc-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 15 May 2018 09:53:13 -0400 Received: from localhost by e18.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 15 May 2018 09:53:12 -0400 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) by e18.ny.us.ibm.com (146.89.104.205) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 15 May 2018 09:53:09 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4FDr92I52953286; Tue, 15 May 2018 13:53:09 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1AB97B2046; Tue, 15 May 2018 10:55:07 -0400 (EDT) Received: from [9.195.32.184] (unknown [9.195.32.184]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 835CCB205A; Tue, 15 May 2018 10:55:03 -0400 (EDT) Subject: Re: [PATCH] crypto: reorder paes test lexicographically From: Abdul Haleem To: Gilad Ben-Yossef Cc: Herbert Xu , "David S. Miller" , sachinp , Stephen Rothwell , linux-kernel@vger.kernel.org, linux-next , linux-crypto@vger.kernel.org, linuxppc-dev , Ofir Drang Date: Tue, 15 May 2018 19:23:04 +0530 In-Reply-To: <1526025847-13134-1-git-send-email-gilad@benyossef.com> References: <1526025847-13134-1-git-send-email-gilad@benyossef.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18051513-0044-0000-0000-00000414A566 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009029; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000260; SDB=6.01032670; UDB=6.00527956; IPR=6.00811801; MB=3.00021126; MTD=3.00000008; XFM=3.00000015; UTC=2018-05-15 13:53:12 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18051513-0045-0000-0000-00000846B9B0 Message-Id: <1526392384.19317.3.camel@abdul> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-15_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805150140 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-05-11 at 09:04 +0100, Gilad Ben-Yossef wrote: > Due to a snafu "paes" testmgr tests were not ordered > lexicographically, which led to boot time warnings. > Reorder the tests as needed. > > Fixes: a794d8d ("crypto: ccree - enable support for hardware keys") > Reported-by: Abdul Haleem > Signed-off-by: Gilad Ben-Yossef > --- > crypto/testmgr.c | 44 ++++++++++++++++++++++---------------------- > 1 file changed, 22 insertions(+), 22 deletions(-) > > diff --git a/crypto/testmgr.c b/crypto/testmgr.c > index c31da0f..b1b8ebb 100644 > --- a/crypto/testmgr.c > +++ b/crypto/testmgr.c > @@ -3012,13 +3012,6 @@ static const struct alg_test_desc alg_test_descs[] = { > } > } > }, { > - /* Same as ecb(aes) except the key is stored in > - * hardware secure memory which we reference by index > - */ > - .alg = "ecb(paes)", > - .test = alg_test_null, > - .fips_allowed = 1, > - }, { > .alg = "ecb(khazad)", > .test = alg_test_skcipher, > .suite = { > @@ -3028,6 +3021,13 @@ static const struct alg_test_desc alg_test_descs[] = { > } > } > }, { > + /* Same as ecb(aes) except the key is stored in > + * hardware secure memory which we reference by index > + */ > + .alg = "ecb(paes)", > + .test = alg_test_null, > + .fips_allowed = 1, > + }, { > .alg = "ecb(seed)", > .test = alg_test_skcipher, > .suite = { > @@ -3610,21 +3610,6 @@ static const struct alg_test_desc alg_test_descs[] = { > } > } > }, { > - /* Same as xts(aes) except the key is stored in > - * hardware secure memory which we reference by index > - */ > - .alg = "xts(paes)", > - .test = alg_test_null, > - .fips_allowed = 1, > - }, { > - .alg = "xts4096(paes)", > - .test = alg_test_null, > - .fips_allowed = 1, > - }, { > - .alg = "xts512(paes)", > - .test = alg_test_null, > - .fips_allowed = 1, > - }, { > .alg = "xts(camellia)", > .test = alg_test_skcipher, > .suite = { > @@ -3643,6 +3628,13 @@ static const struct alg_test_desc alg_test_descs[] = { > } > } > }, { > + /* Same as xts(aes) except the key is stored in > + * hardware secure memory which we reference by index > + */ > + .alg = "xts(paes)", > + .test = alg_test_null, > + .fips_allowed = 1, > + }, { > .alg = "xts(serpent)", > .test = alg_test_skcipher, > .suite = { > @@ -3679,6 +3671,14 @@ static const struct alg_test_desc alg_test_descs[] = { > } > } > }, { > + .alg = "xts4096(paes)", > + .test = alg_test_null, > + .fips_allowed = 1, > + }, { > + .alg = "xts512(paes)", > + .test = alg_test_null, > + .fips_allowed = 1, > + }, { > .alg = "zlib-deflate", > .test = alg_test_comp, > .fips_allowed = 1, Gilad, The given patch fixes the boot warnings. Tested-by: Abdul Haleem Thanks for the fix. -- Regard's Abdul Haleem IBM Linux Technology Centre