musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/misc/crypt.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012年08月29日 12:41:29 -0400
committerRich Felker <dalias@aerifal.cx>2012年08月29日 12:41:29 -0400
commit88bf5a8a8d7d796f63cca8589f4de67aa8345f1a (patch)
tree93ef111566aae52afa23a5c5201d9d46615f92ba /src/misc/crypt.c
parentb439c051c7eee4eb4b93fc382f993aa6305ce530 (diff)
downloadmusl-88bf5a8a8d7d796f63cca8589f4de67aa8345f1a.tar.gz
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')
-rw-r--r--src/misc/crypt.c 2
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);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月29日 09:19:54 +0000

AltStyle によって変換されたページ (->オリジナル) /