Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp603012yba; Thu, 18 Apr 2019 06:41:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYdkvS4oWjD/60XbRtKq/Qf0MpLD1CycELH2aAJsy1L27TC4qW6mx44jXxceyIvuhgzDrf X-Received: by 2002:a63:521c:: with SMTP id g28mr5619507pgb.431.1555594860444; Thu, 18 Apr 2019 06:41:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555594860; cv=none; d=google.com; s=arc-20160816; b=Mk5OQr9J3gaViSjao3Zpdhv82CC9To0yVR3h18hsZcKUwkmkLmEqWovxg7u5UDK0B1 R6ytTLcxYVRXfCqmcvTpfuraKzBYmEnMr6mHJdBKDm4IJN/OUsUHs5l2MZzU79oYSnU4 duPJlSJitkiql1/NcB/m0bN7+GGZXjj7uEYl/1uJMAJfL0oqnwtGhFHaHh5aT+2gjX1U SkrJregwKsr8hxnQu0qQyjAHcVBelQvzVLUW02YrSdAASSJ4eUEQsgh+7Ixr88iRO2da oBCGPHvAt1WgFmSGdVIceyfoIFzc6jsIBnk3UhjEDEy4ORHE1JnTIrkzX3GWLEAgOJDz erQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=JoYTHzPdbnXhEOt8NLjQduRXsKEZFCHy71kMIy3Pyfg=; b=JHK+xgJqSifp1Z3K7PAxmnwK/bWszg/wz+M0XuNuVQC4SPJjBtRn82aDRNTpYQ/E08 0hlr//HH2br4hS2vt4TaqVQvpYjA6m8QrgcJVlcCAmq8p9pyhcRT8tuLqhWBfyg/L6xG kqygnbq1S4q0wKCfmNTXJUZ6JkZ1hc19O+uXp+r68fyWZMpLkYKVrpRuL6jEEawahjIw sX5RrrjoDdQy0cLMD2jVOw2sMsEZK+olCTztsesZVTqLj0FagY5d2ie8OVWjHp06MmZ+ MOXPxdyqcN/iXpilervRmvSpFqt6siWSm089Au/ZPzJt71otXgU5EHYWcnM3qToY0sPc VSJA== 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 n10si2147326plp.130.2019.04.18.06.40.45; Thu, 18 Apr 2019 06:41:00 -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 S2388375AbfDRNj2 (ORCPT + 99 others); Thu, 18 Apr 2019 09:39:28 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:33416 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733192AbfDRNj1 (ORCPT ); Thu, 18 Apr 2019 09:39:27 -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 170D91688; Thu, 18 Apr 2019 06:39:27 -0700 (PDT) Received: from e110176-lin.kfn.arm.com (e110176-lin.kfn.arm.com [10.50.4.178]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9F32A3F5AF; Thu, 18 Apr 2019 06:39:25 -0700 (PDT) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" Cc: Ofir Drang , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/35] crypto: testmgr: add missing self test entries for protected keys Date: Thu, 18 Apr 2019 16:38:36 +0300 Message-Id: <20190418133913.9122-2-gilad@benyossef.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190418133913.9122-1-gilad@benyossef.com> References: <20190418133913.9122-1-gilad@benyossef.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mark sm4 and missing aes using protected keys which are indetical to same algs with no HW protected keys as tested. Signed-off-by: Gilad Ben-Yossef --- crypto/testmgr.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 0f6bfb6ce6a4..d04f75d84fc0 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -3012,6 +3012,12 @@ static const struct alg_test_desc alg_test_descs[] = { .alg = "cbc(paes)", .test = alg_test_null, .fips_allowed = 1, + }, { + /* Same as cbc(sm4) except the key is stored in + * hardware secure memory which we reference by index + */ + .alg = "cbc(psm4)", + .test = alg_test_null, }, { .alg = "cbc(serpent)", .test = alg_test_skcipher, @@ -3147,6 +3153,13 @@ static const struct alg_test_desc alg_test_descs[] = { .test = alg_test_null, .fips_allowed = 1, }, { + + /* Same as ctr(sm4) except the key is stored in + * hardware secure memory which we reference by index + */ + .alg = "ctr(psm4)", + .test = alg_test_null, + }, { .alg = "ctr(serpent)", .test = alg_test_skcipher, .suite = { @@ -3171,6 +3184,13 @@ static const struct alg_test_desc alg_test_descs[] = { .suite = { .cipher = __VECS(cts_mode_tv_template) } + }, { + /* Same as cts(cbc((aes)) except the key is stored in + * hardware secure memory which we reference by index + */ + .alg = "cts(cbc(paes))", + .test = alg_test_null, + .fips_allowed = 1, }, { .alg = "deflate", .test = alg_test_comp, -- 2.21.0