From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YXSbG-0003gu-RM for barebox@lists.infradead.org; Mon, 16 Mar 2015 10:50:23 +0000 Received: from kiwi.hi.pengutronix.de ([2001:67c:670:100:1d::c3] helo=kiwi) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YXSat-0000tF-QV for barebox@lists.infradead.org; Mon, 16 Mar 2015 11:49:59 +0100 Received: from jlu by kiwi with local (Exim 4.84) (envelope-from ) id 1YXSat-0000At-N7 for barebox@lists.infradead.org; Mon, 16 Mar 2015 11:49:59 +0100 Message-ID: <1426502999.3330.35.camel@pengutronix.de> From: Jan =?ISO-8859-1?Q?L=FCbbe?= Date: Mon, 16 Mar 2015 11:49:59 +0100 In-Reply-To: <1426500945-31815-7-git-send-email-plagnioj@jcrosoft.com> References: <20150316101321.GA26127@ns203013.ovh.net> <1426500945-31815-1-git-send-email-plagnioj@jcrosoft.com> <1426500945-31815-7-git-send-email-plagnioj@jcrosoft.com> Mime-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 07/10] password: add pbkdf2 support To: barebox@lists.infradead.org On Mo, 2015-03-16 at 11:15 +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > We will use "barebox_password" as salt and 10000 round to generate a > 64 bytes key. The purpose of a salt is to protect a against dictionary or rainbow-table (precomputed) attacks. That means that the Salt must be randomly generated and saved with the password. For setting a new password in barebox, even a low entropy salt will make attacks significantly more expensive. So we should add some entropy from user interaction timing in that case. For hashing a password at compile time, we should get the salt from the host system. Regards, Jan -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox