From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163307AbdDWS6E (ORCPT ); Sun, 23 Apr 2017 14:58:04 -0400 Received: from mail.eperm.de ([89.247.134.16]:59140 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163289AbdDWS6D (ORCPT ); Sun, 23 Apr 2017 14:58:03 -0400 From: Stephan =?ISO-8859-1?Q?M=FCller?= To: Gilad Ben-Yossef Cc: 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: Sun, 23 Apr 2017 20:57:58 +0200 Message-ID: <19392241.HaQDpS1BQU@positron.chronox.de> In-Reply-To: References: <1492693983-8175-1-git-send-email-gilad@benyossef.com> <6020947.G2hzgUSCE3@positron.chronox.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Sonntag, 23. April 2017, 11:48:58 CEST schrieb Gilad Ben-Yossef: Hi Gilad, > I do wonder if there is value in alternate behavior of stopping crypto > API on FIPS error rather than a panic though. I will try to get an > explanation why we do it this way. In FIPS, all crypto function must cease if a self test fails. This can be done by instrumenting the crypto API calls with a check to a global flag or by simply terminating the entire "FIPS module". The panic() is the simplest approach to meet that requirement. Ciao Stephan