From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751506AbaKFPDj (ORCPT ); Thu, 6 Nov 2014 10:03:39 -0500 Received: from helcar.apana.org.au ([209.40.204.226]:56991 "EHLO helcar.apana.org.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751020AbaKFPDd (ORCPT ); Thu, 6 Nov 2014 10:03:33 -0500 Date: Thu, 6 Nov 2014 23:03:26 +0800 From: Herbert Xu To: "Leonidas S. Barbosa" Cc: linux-crypto@vger.kernel.org, "David S. Miller" , linux-kernel@vger.kernel.org, Marcelo Henrique Cerri , Fionnuala Gunter Subject: Re: [PATCH 9/9] Disable ccm and ccm4309 in fips mod Message-ID: <20141106150326.GC3300@gondor.apana.org.au> References: <20141028175146.GA18467@bluepex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141028175146.GA18467@bluepex.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 28, 2014 at 03:51:54PM -0200, Leonidas S. Barbosa wrote: > NX CCM has not support to keys larger than 128 neither our hardware. > In cases where a system is running in fips mode enabled a tcrypt test will > crash the system in a kernel panic call. > This patch disable, for now, CCM's algorithms in fips mode to avoid this. > > Signed-off-by: Leonidas S. Barbosa For cases like this you should be using a software fallback rather than just failing. See padlock-sha for an example. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt