Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | zap trailing whitespace; | jmc | 2017-07-22 | 1 | -2/+2 |
| | |||||
* | rework the page a bit, clarify a few things, maybe better wording | tedu | 2017-07-22 | 1 | -8/+13 |
| | |||||
* | 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. | ||||
* | for some time now mandoc has not required MLINKS to function | jmc | 2016-03-30 | 1 | -8/+1 |
| | | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung | ||||
* | update NAME section to include all documented functions, | jmc | 2015-11-10 | 1 | -3/+3 |
| | | | | | | or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze | ||||
* | Wrap <pwd.h> so that calls go direct and the symbols are all weak. | guenther | 2015-09-13 | 2 | -7/+8 |
| | | | | 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@ | ||||
* | Wrap <stdlib.h> so that calls go direct and the symbols not in the | guenther | 2015-09-13 | 2 | -2/+5 |
| | | | | | | C standard are all weak. Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols. | ||||
* | Wrap <unistd.h> so that internal calls go direct and they're all weak symbols | guenther | 2015-09-12 | 2 | -2/+6 |
| | | | | Delete unused 'fd' argument from internal function oldttyname() | ||||
* | Wrap blowfish, sha*, md5, and rmd160 so that internal calls go direct | guenther | 2015-09-11 | 1 | -1/+14 |
| | | | | ok deraadt@ | ||||
* | Add support for building arc4random with MSVC. | bcook | 2015-09-10 | 1 | -7/+8 |
| | | | | | | | By default, MSVC's stdlib.h defines min(), so we need to spell out something less common to avoid picking it up. ok deraadt@ beck@ miod@ | ||||
* | call it bcrypt in the man page too | tedu | 2015-07-23 | 1 | -3/+3 |
| | |||||
* | permit "bcrypt" as an alias for "blowfish". this is, after all, what | tedu | 2015-07-23 | 1 | -11/+27 |
| | | | | | | | 99% of the world calls it. allow just "bcrypt" without params to mean auto-tune ("bcrypt,a"). default remains 8 rounds (for now) ok deraadt | ||||
* | Unbreak, add errno header | jeremy | 2015-07-18 | 1 | -1/+2 |
| | | | | OK tedu@ | ||||
* | set errno in null cases, just in case. | tedu | 2015-07-18 | 1 | -2/+3 |
| | |||||
* | standards compliant error return (null). will make ruby happier, at least. | tedu | 2015-07-18 | 1 | -5/+2 |
| | | | | ok deraadt jeremy | ||||
* | If crypt(3) is called with an unknown setting, return NULL instead | bluhm | 2015-05-13 | 1 | -1/+3 |
| | | | | | of some undefined value. OK tedu@ | ||||
* | bludgeon DES support out of crypt. long live the bcrypt. | tedu | 2015-04-06 | 2 | -761/+9 |
| | |||||
* | we don't let strtonum errors bleed through now. | tedu | 2015-02-24 | 1 | -4/+2 |
| | |||||
* | Set errno to EINVAL, instead of letting ERANGE escape out. | tedu | 2015-02-24 | 1 | -2/+4 |
| | | | | | | Printing strerror() in that case will say result too large, even if rounds is actually too small. invalid is less specific, but less incorrect. ok millert | ||||
* | use a width specifier for lists, and Sq rather than Dq for single letters | jmc | 2015-02-11 | 1 | -3/+3 |
| | | | | to avoid swamping it; | ||||
* | the possible algos for pref should be documented here | tedu | 2015-02-11 | 1 | -4/+11 |
| | |||||
* | 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 | ||||
* | Move to the <limits.h> universe. | deraadt | 2015-01-16 | 2 | -4/+2 |
| | | | | review by millert, binary checking process with doug, concept with guenther | ||||
* | remove unused variable | chl | 2015-01-15 | 1 | -2/+1 |
| | | | | ok tedu@ | ||||
* | back in september I did the large abstraction refactoring to allow these | deraadt | 2015-01-15 | 2 | -2/+4 |
| | | | | other systems to fit into the same mold, so add copyright | ||||
* | 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 | 2 | -5/+43 |
| | | | | ok deraadt miod | ||||
* | simplify crypt_checkpass. The API promise is that this function doesn't | tedu | 2014-12-24 | 1 | -11/+5 |
| | | | | | | | | | use global data. The simplest fix is to only check blowfish passwords, and implicitly lock out DES passwords. crypt_checkpass is currently only used in one place, passwd, to verify the local user's password, so this is probably acceptable. Gives people a little more time to migrate away from DES before introduing checkpass into more places. | ||||
* | delete documentation for deleted DES interfaces | tedu | 2014-12-08 | 2 | -87/+3 |
| | |||||
* | remove setkey and encrypt interfaces. they are useless and dangerous. | tedu | 2014-12-08 | 3 | -116/+9 |
| | | | | ok deraadt naddy | ||||
* | macro cleanup; kaspars at bankovskis dot net | schwarze | 2014-12-02 | 2 | -49/+55 |
| | |||||
* | rand48(3) not drand48(3) to align with the actual man page and Xr | millert | 2014-11-25 | 1 | -3/+3 |
| | | | | entries. | ||||
* | no need for md5 xr | tedu | 2014-11-25 | 1 | -3/+2 |
| | |||||
* | revert the bludgeoning of DES. if we need a thread safe crypt, maybe it's | tedu | 2014-11-25 | 1 | -31/+33 |
| | | | | better to find one instead of continuing to mangle this mess. | ||||
* | push some global data down into functions to make this threadlier. | tedu | 2014-11-25 | 1 | -33/+31 |
| | | | | only doing what's needed for crypt_hashpass. sigh. | ||||
* | 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. | ||||
* | check crypt() for null. noticed by Jonas Termansen | tedu | 2014-11-24 | 1 | -2/+2 |
| | |||||
* | space needed between macro args and punctuation; | jmc | 2014-11-21 | 1 | -2/+2 |
| | |||||
* | add ERRORS, HISTORY, AUTHORS, Copyright year, and some missing macros; | schwarze | 2014-11-21 | 1 | -6/+39 |
| | | | | ok tedu@ on a previous version | ||||
* | Let crypt_checkpass() set EACCES after bcrypt_checkpass() failure; | schwarze | 2014-11-21 | 1 | -2/+4 |
| | | | | ok tedu@ | ||||
* | change prototype for crypt_newhash. the login_cap_t is a holdover from its | tedu | 2014-11-21 | 2 | -15/+10 |
| | | | | | | pwd_gensalt origins, but a string argument works equally work and is more friendly to consumers beyond local user accounts. ok deraadt | ||||
* | split crypt_checkpass off into a new file | tedu | 2014-11-20 | 3 | -36/+73 |
| | |||||
* | add crypt_newhash to NAME and add an MLINK; | jmc | 2014-11-18 | 2 | -4/+6 |
| | |||||
* | add new function crypt_newhash to simplify creating new hashes. | tedu | 2014-11-17 | 2 | -3/+46 |
| | | | | | does most of the work pwd_gensalt did, but also creates the hash. (unused yet) | ||||
* | missing newline | deraadt | 2014-07-21 | 1 | -1/+2 |
| |