From patchwork Sun Nov 4 10:05:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 150100 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1378196ljp; Sun, 4 Nov 2018 02:06:16 -0800 (PST) X-Google-Smtp-Source: AJdET5fSCA/xt5PzWdkrjVL5exDcCmtv1jLWBSxqxMgwWGoWrhHyj4yv2eGPTMwFDSu6w1ta7uxS X-Received: by 2002:aa7:80cd:: with SMTP id a13-v6mr17897158pfn.86.1541325976507; Sun, 04 Nov 2018 02:06:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541325976; cv=none; d=google.com; s=arc-20160816; b=u4lzTowqP6KvN5MTdzgdoO/JYfFK+1b6/TMdjE5rlcH1cTHKkLE1Np435/j/Uu3aiu oPpxx0iWkOIejJB8EuCTkAcXNtAesrI7ucaYXsDMBgEWi1OL8vjmVYU5LFnlt+nKWjZ4 RjtB2gZZ7QWfg3DAgNe2FF6BFrkoaD+8wohYqwHMJ0VaPd56AKD25+yv9RH/E/0JDKaz Nxhp6ao742aXqPV17MX9yTk8KIQYO1ncFJubSPU6CUK5dIqqNcKcQNn5VwzvucPN+Wg2 EDEDbRjIIudDhePgXDgQwmgJYi+F2O+OMvBerqbondTebrTjbWOuLFuLOI+rYOpWsnH3 DlAQ== 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; bh=ze1IPGMldfKTFIekjU/u+31ioLJHmlPMF6l0Is+Zs8o=; b=hMkBLVfe+VyzBF3vgqv/MamlyW+VnyLrdNl+Qw17/pgdaODA7mn6AZgQ2iRC6sRCAs 4HKDex9Dx9pYCG7nBqNuIZFShMA7yR+AmM8kGsT0C/Mizs/QdUUfrkT84gM1Cn4FuFIn V48eCUJICCQdZWvuJNdfdhhcOCBYB02q/El7QMKrBfCGAsES6AOnjmGyOW9IGs0/9HrS aw6tQY1Mp61/6rKJFZEKZM1RuK9BuoY3JSPj6zchqn+vXDKufRr/hccAOyeP0XqSDfI8 cdiyj0kMF7mjkzjjHcOmvuKYugOin8GGNeVFSTtgtufvR/SwW5bqhBH8mo84bIxJR0Fo 07HA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 63-v6si10839405pfg.234.2018.11.04.02.06.15; Sun, 04 Nov 2018 02:06:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729282AbeKDTUi (ORCPT + 2 others); Sun, 4 Nov 2018 14:20:38 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:58086 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726556AbeKDTUi (ORCPT ); Sun, 4 Nov 2018 14:20:38 -0500 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 78A22A78; Sun, 4 Nov 2018 02:06:14 -0800 (PST) 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 B842B3F71E; Sun, 4 Nov 2018 02:06:12 -0800 (PST) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" Cc: Ofir Drang , Yael Chemla , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: mark cts(cbc(aes)) as FIPS allowed Date: Sun, 4 Nov 2018 10:05:24 +0000 Message-Id: <1541325924-14777-1-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org As per Sp800-38A addendum from Oct 2010[1], cts(cbc(aes)) is allowed as a FIPS mode algorithm. Mark it as such. [1] https://csrc.nist.gov/publications/detail/sp/800-38a/addendum/final Signed-off-by: Gilad Ben-Yossef --- crypto/testmgr.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 Reviewed-by: Stephan Mueller diff --git a/crypto/testmgr.c b/crypto/testmgr.c index b1f79c6..1a371d01 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -2805,6 +2805,7 @@ static const struct alg_test_desc alg_test_descs[] = { }, { .alg = "cts(cbc(aes))", .test = alg_test_skcipher, + .fips_allowed = 1, .suite = { .cipher = __VECS(cts_mode_tv_template) }