Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp475949imm; Fri, 11 May 2018 01:05:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZryb3qRVUJPQ+dzWoN6bJ0V0s/AqgHPIc8FBEfqhGZ/IA0DRKHME8rx9TDDFLsOukAiF9hX X-Received: by 2002:a17:902:bc49:: with SMTP id t9-v6mr4599902plz.109.1526025944880; Fri, 11 May 2018 01:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526025944; cv=none; d=google.com; s=arc-20160816; b=OcldmP+uqT1nQDwonfUNO/2mUbA+4l8NHGE8HXTPOswsL21z4V1C2DSvN8j0yk6EUn Qt4nqECAwxsayawtCmnt3gBhVJw6dKGayNhmoyxiSvYHBj36iFfk7MjZXu5IWSLHyzZ6 u36J71424F5XDTFmbZM1STSHGaIlZpIzgpubzovwJjyub2Sq0NxhjBjtBB1kqrkR8Ryn aAS44fyI0pUCQx+BrIBseqDeb1byrMtmwD774kPLljOtlvkiVEYmKdlzN9qQLK4B9C/2 zPajvToIu1lKt7XKmJDsTioRzMTqp7LmoN9PtkD86jVQ9z54GYNzuErnN5+DShojeyn6 QiPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=0h3mXVOT1rQa/InrKtQctkSlD5c18OylNL8pFABDaC8=; b=Am8AlBcqIGiYGU8kPLTw0bEOYe/bTKoRjj3EkNsy5D734KP8ScoTmJwwUTBZOCxhmY zH9rJgfvRAhzH2X4EM09m20L6ocXvkY7EZWMABQRmW/7RdSKxpCFJ85OszL/E4ZZ22Yu OaLwSOr5/NQOu0dEUbBII1ySOcKquU897TU1KnrFWKlkX0/rBBBk355PeDchsUdhPpyl L3KL3sXCqijIUkqw2sCvV6Rpfe+IlsBzwCn0y/oLVbCGMak1Mtn+TtV7Ffn03kK1O6oq ufG/iiE0J7V35M1dvn8gtQsjecaoDarh7Uws7p/IwVx97AXOxArXK1ox+9xbTzIfX7Sy NXdQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9-v6si2695053plo.263.2018.05.11.01.05.30; Fri, 11 May 2018 01:05:44 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753142AbeEKIFF (ORCPT + 99 others); Fri, 11 May 2018 04:05:05 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:37320 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753051AbeEKIFC (ORCPT ); Fri, 11 May 2018 04:05:02 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 181911596; Fri, 11 May 2018 01:05:02 -0700 (PDT) Received: from sugar.benyossef.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 45AC03F53D; Fri, 11 May 2018 01:04:59 -0700 (PDT) From: Gilad Ben-Yossef To: Abdul Haleem , Herbert Xu , "David S. Miller" Cc: Ofir Drang , linux-next , Stephen Rothwell , sachinp , linuxppc-dev , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: reorder paes test lexicographically Date: Fri, 11 May 2018 09:04:06 +0100 Message-Id: <1526025847-13134-1-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, -- 2.7.4