summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2013-04-21 18:31:57 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2013-04-21 18:31:57 +0000
commit8b8ff9fc26a00ed8dc894361ae6679ac0547fa1d (patch)
tree0a6718fb970662fe8236fed9deef23ff674681fd /lib
parentcbc568b119eff151ccc9094666f484a966c48735 (diff)
tweak a few comments
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/crypt/md5crypt.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/crypt/md5crypt.c b/lib/libc/crypt/md5crypt.c
index b32cd2115fa..3b7884d5c94 100644
--- a/lib/libc/crypt/md5crypt.c
+++ b/lib/libc/crypt/md5crypt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: md5crypt.c,v 1.15 2009/10/31 13:29:07 sobrado Exp $ */
+/* $OpenBSD: md5crypt.c,v 1.16 2013/04/21 18:31:56 tedu Exp $ */
/*
* ----------------------------------------------------------------------------
@@ -44,8 +44,8 @@ char *
md5crypt(const char *pw, const char *salt)
{
/*
- * This string is magic for this algorithm. Having
- * it this way, we can get get better later on
+ * This string is the magic for this algorithm.
+ * Having it this way, we can get better later on.
*/
static unsigned char *magic = (unsigned char *)"$1$";
@@ -56,7 +56,7 @@ md5crypt(const char *pw, const char *salt)
MD5_CTX ctx,ctx1;
u_int32_t l;
- /* Refine the Salt first */
+ /* Refine the salt first */
sp = (const unsigned char *)salt;
/* If it starts with the magic string, then skip that */
@@ -107,9 +107,11 @@ md5crypt(const char *pw, const char *salt)
MD5Final(final,&ctx);
/*
- * and now, just to make sure things don't run too fast
+ * And now, just to make sure things don't run too fast
* On a 60 MHz Pentium this takes 34 msec, so you would
* need 30 seconds to build a 1000 entry dictionary...
+ * On a modern machine, with possible GPU optimization,
+ * this will run a lot faster than that.
*/
for(i=0;i<1000;i++) {
MD5Init(&ctx1);