summaryrefslogtreecommitdiff
path: root/lib/libc/crypt/bcrypt.c
AgeCommit message (Expand)Author
2016-08-26Pull in <time.h> for clock_gettime()Philip Guenther
2016-06-26increase the minimum for auto rounds to 6. that was the previous low boundTed Unangst
2015-09-13Wrap <pwd.h> so that calls go direct and the symbols are all weak.Philip Guenther
2015-09-13The number of rounds is just two digits in the salt. We've alreadyTodd C. Miller
2015-07-18standards compliant error return (null). will make ruby happier, at least.Ted Unangst
2015-01-28dial the time back to about 0.1s, closer to the original targets andTed Unangst
2015-01-12rename blocks to words. bcrypt "blocks" are unrelated to blowfish blocks,Ted Unangst
2015-01-07stupid me. need errno.hTed Unangst
2015-01-07set errno = EINVAL for invalid salts and hashes in most functions.Ted Unangst
2015-01-05convert clock() to clock_gettime() for improved precision (and accuracy?)Ted Unangst
2014-12-30copy bcrypt autotune from encrypt(1) and expose via crypt_newhashTed Unangst
2014-11-24introduce a hashspace define and check that there's enough space toTed Unangst
2014-07-20From ISO/IEC 9899:1999 and 9899:201x,Philip Guenther
2014-05-17Add missing header needed by isdigit().Charles Longeau
2014-05-06fix stupid commitTed Unangst
2014-05-06use explicit_bzeroTed Unangst
2014-05-03now that 5.5 has been released with compatibility for 2b hashes,Ted Unangst
2014-05-031. Drop support for no minor. This variant doesn't exist anymore.Ted Unangst
2014-04-19one small tweak to avoid ever going off the end of a string.Ted Unangst
2014-04-19improved checking for invalid hashes. from solar designerTed Unangst
2014-04-08use char * for strings, saving casts. add return codes to base64 functionsTed Unangst
2014-03-24oops, merge errorTed Unangst
2014-03-23clear stack variables, suggested by djmTed Unangst
2014-03-23some improvements suggested by djm.Ted Unangst
2014-03-23two functions don't need to be exportedTed Unangst
2014-03-23minimal change to implementation of bcrypt to not require static globals.Ted Unangst
2014-03-22switch to shorter ISC license. this was ok with Niels Provos.Ted Unangst
2014-03-19consolidate the base64 code in one place, and remove inadequate test codeTed Unangst
2014-02-24solar's testsuite revealed insufficient validation of invalid input hashes.Ted Unangst
2014-02-17remove redundant testTed Unangst
2014-02-17sticking strlen into a char leads to wraparound at 256. fix this andTed Unangst
2013-12-19pseudo-code corrections from Solar Designer <solar@openwall.com>Theo de Raadt
2012-09-04arc4random_buf is the easy way to fill a buffer now. ok deraadtTed Unangst
2008-04-02Zero state buffers on return. OK deraadt@Todd C. Miller
2007-03-19Get rid of useless #if 0 block, especially since the code is includedRay Lai
2007-02-20Change hard coded numbers to sizeof(buf). Also change someRay Lai
2006-07-04allocate gsalt large enough; from Matthew R. Dempsky <mrd at alkemioOtto Moerbeek
2006-04-03be more careful with atoi() result; ok ottoTheo de Raadt
2004-12-22Test the upper limit for the max # of rounds to, to avoid wrapping and endingOtto Moerbeek
2003-08-07ansiTheo de Raadt
2003-06-25protosTheo de Raadt
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2001-01-04grammer/spellingTodd T. Fries
2000-08-02return error if salt is too small; pr 1336Niels Provos
1998-08-10fix base64 encoding, this problem was reported byNiels Provos
1998-02-18#if __STDC__ -> #ifdef __STDC__, now all of them.Niels Provos
1997-09-10indentation cleanupTheo de Raadt
1997-07-25#if __STDC__ --> #ifdef __STDC__Michael Shalayeff
1997-07-23tabifykstailey