From 88bf5a8a8d7d796f63cca8589f4de67aa8345f1a Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 29 Aug 2012 12:41:29 -0400 Subject: add sha256/sha512 crypt based on versions sent to the list by nsz, with some simplification and debloating. i'd still like to get them a bit smaller, or ideally merge them into a single file with most of the code being shared, but that can be done later. --- src/misc/crypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/misc/crypt.c') diff --git a/src/misc/crypt.c b/src/misc/crypt.c index fc5c4ee1..f1e310f6 100644 --- a/src/misc/crypt.c +++ b/src/misc/crypt.c @@ -6,6 +6,6 @@ char *__crypt_r(const char *, const char *, struct crypt_data *); char *crypt(const char *key, const char *salt) { /* Note: update this size when we add more hash types */ - static char buf[64]; + static char buf[128]; return __crypt_r(key, salt, (struct crypt_data *)buf); } -- cgit v1.2.1