path: root/src/misc/crypt.c
diff options
authorRich Felker <>2012-08-29 12:41:29 -0400
committerRich Felker <>2012-08-29 12:41:29 -0400
commit88bf5a8a8d7d796f63cca8589f4de67aa8345f1a (patch)
tree93ef111566aae52afa23a5c5201d9d46615f92ba /src/misc/crypt.c
parentb439c051c7eee4eb4b93fc382f993aa6305ce530 (diff)
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.
Diffstat (limited to 'src/misc/crypt.c')
1 files changed, 1 insertions, 1 deletions
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);