Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Pull in <time.h> for clock_gettime() | guenther | 2016-08-26 | 1 | -1/+2 |
| | | | | ok deraadt@ | ||||
* | increase the minimum for auto rounds to 6. that was the previous low bound | tedu | 2016-06-26 | 1 | -2/+2 |
| | | | | for login.conf, and we don't want to go lower. | ||||
* | Wrap <pwd.h> so that calls go direct and the symbols are all weak. | guenther | 2015-09-13 | 1 | -2/+5 |
| | | | | Hide bcrypt_autorounds(), prefixing with an underbar for static builds. | ||||
* | The number of rounds is just two digits in the salt. We've already | millert | 2015-09-13 | 1 | -2/+2 |
| | | | | | verified that they are there via isdigit() so we can convert from ASCII to an int without using atoi(). OK guenther@ deraadt@ | ||||
* | standards compliant error return (null). will make ruby happier, at least. | tedu | 2015-07-18 | 1 | -5/+2 |
| | | | | ok deraadt jeremy | ||||
* | dial the time back to about 0.1s, closer to the original targets and | tedu | 2015-01-28 | 1 | -4/+4 |
| | | | | friendlier for users. requested by deraadt | ||||
* | rename blocks to words. bcrypt "blocks" are unrelated to blowfish blocks, | tedu | 2015-01-12 | 1 | -9/+9 |
| | | | | nor are they the same size. | ||||
* | stupid me. need errno.h | tedu | 2015-01-07 | 1 | -1/+2 |
| | |||||
* | set errno = EINVAL for invalid salts and hashes in most functions. | tedu | 2015-01-07 | 1 | -12/+20 |
| | | | | | | | remember to set EACCES in bcrypt_checkpass for hash differences. the higher level crypt_checkpass function will reset errno to EACCES in all cases, which is probably the right behavior, but this change gives code working with the lower level functions the correct errno if they care. | ||||
* | convert clock() to clock_gettime() for improved precision (and accuracy?) | tedu | 2015-01-05 | 1 | -7/+9 |
| | | | | | guenther suggested using thread time, which actually may improve accuracy if somebody puts this in a threaded program. | ||||
* | copy bcrypt autotune from encrypt(1) and expose via crypt_newhash | tedu | 2014-12-30 | 1 | -1/+33 |
| | | | | ok deraadt miod | ||||
* | introduce a hashspace define and check that there's enough space to | tedu | 2014-11-24 | 1 | -15/+10 |
| | | | | write out a hash. also simplify writing out the hash. | ||||
* | From ISO/IEC 9899:1999 and 9899:201x, | guenther | 2014-07-20 | 1 | -3/+3 |
| | | | | | | | | | 6.11.5 - Storage-class specifiers: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Diff from Jean-Philippe Ouellet (jean-philippe (at) ouellet.biz) | ||||
* | Add missing header needed by isdigit(). | chl | 2014-05-17 | 1 | -4/+5 |
| | | | | | | While there, sort headers. ok tedu@ | ||||
* | fix stupid commit | tedu | 2014-05-06 | 1 | -5/+5 |
| | |||||
* | use explicit_bzero | tedu | 2014-05-06 | 1 | -5/+5 |
| | |||||
* | now that 5.5 has been released with compatibility for 2b hashes, | tedu | 2014-05-03 | 1 | -2/+2 |
| | | | | switch to generating them by default. prodded by deraadt and sthen | ||||
* | 1. Drop support for no minor. This variant doesn't exist anymore. | tedu | 2014-05-03 | 1 | -44/+30 |
| | | | | | | | | | | 2. Pull up the actual minor processing code into the switch that parses it. 3. atoi is actually simpler than strtonum in this case, but check the input beforehand so we don't get unexpected results. 4. Slightly more consistent style between various parse and check and increment operations on salt. ok deraadt | ||||
* | one small tweak to avoid ever going off the end of a string. | tedu | 2014-04-19 | 1 | -4/+6 |
| | |||||
* | improved checking for invalid hashes. from solar designer | tedu | 2014-04-19 | 1 | -6/+10 |
| | |||||
* | use char * for strings, saving casts. add return codes to base64 functions | tedu | 2014-04-08 | 1 | -15/+26 |
| | |||||
* | oops, merge error | tedu | 2014-03-24 | 1 | -2/+2 |
| | |||||
* | clear stack variables, suggested by djm | tedu | 2014-03-23 | 1 | -1/+4 |
| | |||||
* | some improvements suggested by djm. | tedu | 2014-03-23 | 1 | -4/+6 |
| | | | | | | use better constant for salt size. always copy ":" to gerror, in case somebody is dumb enough to overwrite it timingsafe_bcmp before somebody whines about strcmp | ||||
* | two functions don't need to be exported | tedu | 2014-03-23 | 1 | -3/+3 |
| | |||||
* | minimal change to implementation of bcrypt to not require static globals. | tedu | 2014-03-23 | 1 | -39/+88 |
| | | | | | | add some friendlier functions. move the classic static data api into wrapper functions. a few more changes to come... | ||||
* | switch to shorter ISC license. this was ok with Niels Provos. | tedu | 2014-03-22 | 1 | -27/+12 |
| | |||||
* | consolidate the base64 code in one place, and remove inadequate test code | tedu | 2014-03-19 | 1 | -86/+56 |
| | |||||
* | solar's testsuite revealed insufficient validation of invalid input hashes. | tedu | 2014-02-24 | 1 | -8/+10 |
| | | | | add a more complete check for the rounds parameter. ok deraadt | ||||
* | remove redundant test | tedu | 2014-02-17 | 1 | -3/+2 |
| | |||||
* | sticking strlen into a char leads to wraparound at 256. fix this and | tedu | 2014-02-17 | 1 | -5/+18 |
| | | | | | | introduce a new 'b' hash minor. still generate 'a' minors for now. reported by solar designer. diff by some combination of solar and jca. ok deraadt | ||||
* | pseudo-code corrections from Solar Designer <solar@openwall.com> | deraadt | 2013-12-19 | 1 | -4/+4 |
| | |||||
* | arc4random_buf is the easy way to fill a buffer now. ok deraadt | tedu | 2012-09-04 | 1 | -10/+3 |
| | |||||
* | Zero state buffers on return. OK deraadt@ | millert | 2008-04-02 | 1 | -1/+5 |
| | |||||
* | Get rid of useless #if 0 block, especially since the code is included | ray | 2007-03-19 | 1 | -5/+1 |
| | | | | | | immediately after. OK millert@. | ||||
* | Change hard coded numbers to sizeof(buf). Also change some | ray | 2007-02-20 | 1 | -3/+3 |
| | | | | | | | | sizeof(buf) - 1 to sizeof(buf), since fgets takes the whole buffer size. Based on diff from Charles Longeau <chl at tuxfamily dot org> long ago. OK millert@. | ||||
* | allocate gsalt large enough; from Matthew R. Dempsky <mrd at alkemio | otto | 2006-07-04 | 1 | -2/+2 |
| | | | | dot org>; ok djm@ deraadt@ | ||||
* | be more careful with atoi() result; ok otto | deraadt | 2006-04-03 | 1 | -3/+5 |
| | |||||
* | Test the upper limit for the max # of rounds to, to avoid wrapping and ending | otto | 2004-12-22 | 1 | -2/+7 |
| | | | | up with a low number of rounds. Spotted by mpech@; ok mpech@ millert@ | ||||
* | ansi | deraadt | 2003-08-07 | 1 | -8/+3 |
| | |||||
* | protos | deraadt | 2003-06-25 | 1 | -1/+3 |
| | |||||
* | We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft. | millert | 2002-02-19 | 1 | -32/+1 |
| | |||||
* | Part one of userland __P removal. Done with a simple regexp with some minor ↵ | millert | 2002-02-16 | 1 | -5/+5 |
| | | | | hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | ||||
* | grammer/spelling | todd | 2001-01-04 | 1 | -2/+2 |
| | |||||
* | return error if salt is too small; pr 1336 | provos | 2000-08-02 | 1 | -1/+4 |
| | |||||
* | fix base64 encoding, this problem was reported by | provos | 1998-08-10 | 1 | -6/+6 |
| | | | | Solar Designer <solar@false.com> some time ago. | ||||
* | #if __STDC__ -> #ifdef __STDC__, now all of them. | provos | 1998-02-18 | 1 | -4/+4 |
| | |||||
* | indentation cleanup | deraadt | 1997-09-10 | 1 | -2/+2 |
| | |||||
* | #if __STDC__ --> #ifdef __STDC__ | mickey | 1997-07-25 | 1 | -2/+2 |
| | |||||
* | tabify | kstailey | 1997-07-23 | 1 | -7/+7 |
| |