diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2015-03-11 17:53:07 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-03-12 07:58:24 +0100 |
commit | 3a436924121456c1347acedac31c9e19b2893565 (patch) | |
tree | 7fdbc285b4ad743588c1cb2605c2524cf93e0fe6 /common/password.c | |
parent | 2505dd9b413aca61b3acd74765683ee6430a06cf (diff) | |
download | barebox-3a436924121456c1347acedac31c9e19b2893565.tar.gz barebox-3a436924121456c1347acedac31c9e19b2893565.tar.xz |
password: add support for sha512
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/password.c')
-rw-r--r-- | common/password.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/password.c b/common/password.c index 4c33152dbe..6ecf7177f0 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) |