From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1165408AbdDXGV4 convert rfc822-to-8bit (ORCPT ); Mon, 24 Apr 2017 02:21:56 -0400 Received: from mail.eperm.de ([89.247.134.16]:59204 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1165354AbdDXGVt (ORCPT ); Mon, 24 Apr 2017 02:21:49 -0400 From: Stephan =?ISO-8859-1?Q?M=FCller?= To: Stephan =?ISO-8859-1?Q?M=FCller?= Cc: Gilad Ben-Yossef , Herbert Xu , "David S. Miller" , Rob Herring , Mark Rutland , Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, Linux kernel mailing list , Gilad Ben-Yossef , Binoy Jayan , Ofir Drang , Stuart Yoder Subject: Re: [PATCH v2 6/9] staging: ccree: add FIPS support Date: Mon, 24 Apr 2017 08:21:46 +0200 Message-ID: <2100092.9meQszc5SR@tauon.chronox.de> In-Reply-To: <2108964.Kb0ivG6kmD@tauon.chronox.de> References: <1492693983-8175-1-git-send-email-gilad@benyossef.com> <2108964.Kb0ivG6kmD@tauon.chronox.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, 24. April 2017, 08:16:50 CEST schrieb Stephan Müller: Hi Gilad, > > > > int __des3_ede_setkey(u32 *expkey, u32 *flags, const u8 *key, > > > > unsigned int keylen) > > > > However, this does not check that k1 == k3. In this case DES3 > > becomes 2DES (2-keys TDEA), the use of which was dropped post 2015 > > by NIST Special Publication 800-131A*. > > It is correct that the RFC wants at least a 2key 3DES. And it is correct > that SP800-131A mandates 3key 3DES post 2015. All I am saying is that FIPS > 140-2 does *not* require a technical verification of the 3 keys being not > identical. One side note: we had discussed a patch to this function in the past, see [1]. [1] https://patchwork.kernel.org/patch/8293441/ Ciao Stephan