From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 7.mo69.mail-out.ovh.net ([46.105.50.32]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YVL9O-0001PL-Py for barebox@lists.infradead.org; Tue, 10 Mar 2015 14:28:52 +0000 Received: from mail409.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo69.mail-out.ovh.net (Postfix) with SMTP id EA61D1004067 for ; Tue, 10 Mar 2015 15:28:27 +0100 (CET) From: Jean-Christophe PLAGNIOL-VILLARD Date: Tue, 10 Mar 2015 15:28:15 +0100 Message-Id: <1425997697-27467-5-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <1425997697-27467-1-git-send-email-plagnioj@jcrosoft.com> References: <20150310141659.GH30554@ns203013.ovh.net> <1425997697-27467-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 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: [PATCH 5/7] password: add support for sha512 To: barebox@lists.infradead.org Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/Kconfig | 4 ++++ common/password.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index 8a8912a..68b20b7 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -449,6 +449,10 @@ config PASSWD_SUM_SHA256 bool "SHA256" select SHA256 +config PASSWD_SUM_SHA512 + bool "SHA512" + select SHA512 + endchoice endif diff --git a/common/password.c b/common/password.c index 4c33152..6ecf717 100644 --- a/common/password.c +++ b/common/password.c @@ -33,6 +33,8 @@ #define PASSWD_SUM "sha1" #elif defined(CONFIG_PASSWD_SUM_SHA256) #define PASSWD_SUM "sha256" +#elif defined(CONFIG_PASSWD_SUM_SHA512) +#define PASSWD_SUM "sha512" #endif int password(unsigned char *passwd, size_t length, int flags, int timeout) -- 2.1.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox