Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Move more OS-specific functionality to arc4random.h headers. | bcook | 2014-07-20 | 2 | -6/+14 |
| | | | | | | | | Move <sys/mman.h> and raise(SIGKILL) calls to OS-specific headers. On OpenBSD, move thread_private.h as well to arc4random.h. On Windows, use TerminateProcess on getentropy failure. ok deraadt@ | ||||
* | 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) | ||||
* | arc4random re-seeds with getentropy() now; ok deraadt@ jmc@ | naddy | 2014-07-19 | 1 | -3/+3 |
| | |||||
* | Change _rs_allocate so it can combine the two regions (rs and rsx) | deraadt | 2014-07-19 | 2 | -28/+25 |
| | | | | | | | | | | into one if a system has an awesome getentropy(). In that case it is valid to totally throw away the rsx state in the child. If the getentropy() is not very good and has a lazy reseed operation, this combining is a bad idea, and the reseed should probably continue to use the "something old, something new" mix. _rs_allocate() can accomodate either method, but not on the fly. ok matthew | ||||
* | Seperate arc4random's os-dependent parts into static inline functions, | deraadt | 2014-07-18 | 2 | -36/+57 |
| | | | | | making it much easier for libressl -portable to fill in the gaps. ok bcook beck | ||||
* | "Race-free because we're running single-threaded in a new | deraadt | 2014-07-17 | 1 | -1/+5 |
| | | | | | address space, and once allocated rs is never deallocated." document the forkhandler to save reviewers time, with matthew | ||||
* | #ifdef wrap the _rs_forkhandler | deraadt | 2014-07-16 | 1 | -1/+3 |
| | |||||
* | added handler for an atfork hook from kettenis@ | bcook | 2014-07-16 | 1 | -1/+10 |
| | | | | ok deraadt@ beck@ kettenis@ | ||||
* | While we thought this would make portable life easier it actually | beck | 2014-07-13 | 1 | -3/+1 |
| | | | | | makes it much harder. ok bcook@ kettenis@ | ||||
* | Wrap "thread_private.h" with #ifdef __OpenBSD__ so that other systems | deraadt | 2014-07-12 | 1 | -1/+3 |
| | | | | | | can copy this file (plus chacha_private.h) directly and reuse it trivially. Well, as long as they have a getentropy() as well.. ok beck | ||||
* | Split arc4random_uniform into it's own file, to assist other projects | deraadt | 2014-07-12 | 3 | -39/+60 |
| | | | | | | now using this as upstream code. The particular problem is systems that contain older arc4random derivations lacking arc4random_uniform(). ok tedu miod | ||||
* | Clean up after arc4random u_int32_t uint32_t change | beck | 2014-07-09 | 1 | -5/+5 |
| | | | | ok jsing@ | ||||
* | changes to improve portability | bcook | 2014-07-09 | 1 | -10/+11 |
| | | | | ok beck@ deraadt@ jsing@ guenther@ | ||||
* | re-init and init code paths are now more shared, so the getpid()-based | deraadt | 2014-06-27 | 1 | -2/+3 |
| | | | | portable code path must handle that; with brent cook | ||||
* | Add back an #ifndef MAP_INHERIT_ZERO chunk to support the old getpid() | deraadt | 2014-06-26 | 1 | -1/+13 |
| | | | | | mechanism, to aid in portability to other systems as requested. ok matthew | ||||
* | document why we explicit_bzero | deraadt | 2014-06-25 | 1 | -2/+2 |
| | |||||
* | arc4random: hard fail with raise(SIGKILL) if getentropy() returns -1 | matthew | 2014-06-20 | 1 | -3/+4 |
| | | | | | | | Allow other non-zero return values in case we change our mind to return an ssize_t byte count instead of simple success/fail. ok deraadt, djm | ||||
* | Move rs_chacha and rs_buf into the same memory page and don't mark it | matthew | 2014-06-19 | 1 | -22/+31 |
| | | | | | | | | | MAP_INHERIT_ZERO anymore. This restores arc4random's previous behavior where fork children would mix in some randomness from the parent process. New behavior noticed by deraadt ok deraadt, tedu |