Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix an Xr, and use a more appropriate macro; | jmc | 2008-06-09 | 1 | -4/+4 |
| | |||||
* | arc4random_stir() does not use /dev/arandom anymore, but sysctl kern.arandom | deraadt | 2008-06-08 | 1 | -4/+6 |
| | |||||
* | fix math screwup that reintroduced a bias for upper_bounds in range | djm | 2008-06-04 | 1 | -2/+2 |
| | | | | | | | (2^30,2^31). Nothing in the tree yet requests random numbers bounded by this range. report jakob!deraadt; ok deraadt@ | ||||
* | Zero state buffers on return. OK deraadt@ | millert | 2008-04-02 | 1 | -1/+5 |
| | |||||
* | - add NAME entries for arc4random_buf and arc4random_uniform | jmc | 2008-03-16 | 1 | -2/+4 |
| | | | | - simplify a macro call (Do/Dc -> Dq) | ||||
* | Add missing MLINKS | deraadt | 2008-03-16 | 1 | -1/+2 |
| | |||||
* | diff from djm@ committed at his request: | otto | 2008-03-16 | 2 | -3/+84 |
| | | | | | | | | | | | | | | introduce two new APIs for requesting strong random numbers: arc4random_buf() - fill an arbitrary memory range with random numbers arc4random_uniform() - return a uniformly distributed random number below a specified upper bound, avoiding the bias that comes from a naive "arc4random() % upper_bound" construction. these mirror similarly-named functions in the kernel; lots of discussion deraadt@ mcbride@ | ||||
* | - make arc4random*() functions thread safe. Use a custom spinlock function | kurt | 2008-01-01 | 1 | -41/+56 |
| | | | | | | | | | | | instead of the generic pthread macros since free(3) uses __arc4_getbyte() when freeing small sized allocations and the generic pthread macros call malloc(3). - eliminate passing pointers to a static variable with global scope (rs) for additional code clarity and reduction. - shlib minor bumps for libc and libpthread due to new functions. From andreas@ with some bits from me. okay tedu@ marc@ w/some spot checking from millert@ | ||||
* | add a RETURN VALUES section. | pyr | 2007-10-08 | 1 | -9/+9 |
| | | | | ok jmc@ | ||||
* | convert to new .Dd format; | jmc | 2007-05-31 | 3 | -6/+6 |
| | |||||
* | macros at start of line require a `.'; | jmc | 2007-05-02 | 1 | -2/+2 |
| | |||||
* | Document the lack of error return value in arc4random. | pyr | 2007-05-02 | 1 | -1/+4 |
| | | | | Sync the documentation in getpid with arc4random's format. | ||||
* | 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@. | ||||
* | provide an libc internal interface to get random bytes, to be used by malloc | otto | 2007-02-12 | 1 | -3/+12 |
| | | | | to get random data without calling getpid(), ok millert@ deraadt@ | ||||
* | no point mentioning functions if we have nothing useful to say | jmc | 2006-08-05 | 1 | -13/+1 |
| | | | | | | about them; ok djm | ||||
* | wording/grammar tweaks; | jmc | 2006-07-26 | 1 | -3/+4 |
| | |||||
* | better macros; | jmc | 2006-07-26 | 1 | -6/+6 |
| | |||||
* | document `iv'; | jmc | 2006-07-26 | 1 | -1/+4 |
| | | | | | from eren elci; tweaked by djm ok djm | ||||
* | updates from nicholas marriott; | jmc | 2006-07-25 | 1 | -5/+9 |
| | | | | re-worded and ok djm | ||||
* | 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 |
| | |||||
* | Use sysctl(KERN_ARND) to get n bytes, instead of just 4 at a time | otto | 2005-11-30 | 1 | -9/+2 |
| | | | | | | | and remove fallback code. If somebody is dumb enough to make the sysctl fail using systrace, he deserves what he gets. Saves 7 syscalls on process startup. looks good miod@ ok deraadt@ tedu@ | ||||
* | add bf_{ecb,cbc}_{en,de}crypt to the .Nm list; | jmc | 2005-10-02 | 1 | -2/+6 |
| | |||||
* | add bcrypt_gensalt, bcrypt, and md5crypt, to the .Nm list; | jmc | 2005-10-02 | 1 | -2/+5 |
| | |||||
* | zap remaining rcsid. | espie | 2005-08-08 | 3 | -15/+3 |
| | | | | | | Kill old files that are no longer compiled. okay theo | ||||
* | punctuation and minor rewording, ok jmc | jaredy | 2005-07-17 | 2 | -6/+6 |
| | |||||
* | RC4 is a trademark. Rest of text left intact. | kjell | 2005-06-07 | 1 | -2/+2 |
| | |||||
* | Change email address for author, at his request. | kjell | 2005-06-06 | 1 | -2/+2 |
| | |||||
* | Change license to standard OpenBSD boilerplate, with permission | kjell | 2005-06-06 | 1 | -6/+15 |
| | | | | from original author (David Mazieres) | ||||
* | use the new fat random sysctl to get initial state. (fallback to looping). | tedu | 2005-06-04 | 1 | -12/+14 |
| | | | | stir after eating 400000 words. ok + input deraadt | ||||
* | sync setkey prototype with reality | millert | 2005-05-26 | 1 | -2/+2 |
| | |||||
* | Be correct in our man pages when talking about NUL termination (that is, | cloder | 2005-02-25 | 1 | -4/+4 |
| | | | | | termination with '\0') vs. null termination. Input from krw@, jaredy@, jmc@. OK deraadt@ | ||||
* | 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@ | ||||
* | knf, no binary change | hshoexer | 2004-11-03 | 1 | -54/+65 |
| | | | | ok krw@ millert@ | ||||
* | ansi, indentation, etc. | hshoexer | 2004-11-02 | 1 | -17/+8 |
| | | | | ok markus@ krw@ cloder@ millert@ | ||||
* | kill spaces | hshoexer | 2004-11-02 | 1 | -3/+3 |
| | | | | ok djm@ | ||||
* | add some missing $, ok djm@ 'That looks fine to me' millert@ | jsg | 2004-10-01 | 1 | -0/+2 |
| | |||||
* | do the char * to u_char * song and dance back and forth explicitly as | deraadt | 2004-09-14 | 2 | -8/+8 |
| | | | | we match API's against each other, fun eh; millert ok | ||||
* | some of these functions are prototyped in pwd.h; ok deraadt@ | djm | 2004-04-06 | 1 | -1/+2 |
| | |||||
* | Discard first 256 bytes of keystream, as per recommendation in | djm | 2003-11-26 | 1 | -1/+10 |
| | | | | | "Weaknesses in the Key Scheduling Algorithm of RC4", Fluhrer, Mantin and Shamir. ok itojun@ | ||||
* | wording improvement from Michael Knudsen; | jmc | 2003-08-28 | 1 | -2/+2 |
| | |||||
* | just use sysctl for stirring. thread safe and can't fail. | tedu | 2003-08-16 | 1 | -23/+10 |
| | | | | ok deraadt and co. | ||||
* | Split crypto routine sup again, but differently. This should make the | deraadt | 2003-08-12 | 3 | -84/+149 |
| | | | | mail floppy parts a fair bit smaller. | ||||
* | unsplice crypt.c and morecrypt.c; start to document some bcrypt and md5crypt | deraadt | 2003-08-07 | 4 | -658/+67 |
| | | | | things in crypt.3, and create MLINKS | ||||
* | ansi | deraadt | 2003-08-07 | 2 | -18/+8 |
| | |||||
* | protos | deraadt | 2003-06-25 | 2 | -3/+7 |
| | |||||
* | ansification; checked by pval | deraadt | 2003-06-11 | 1 | -18/+9 |
| | |||||
* | - section reorder in crypt(3) | jmc | 2003-05-30 | 2 | -5/+5 |
| | | | | - use .An/.Aq for authors | ||||
* | makeing local table static saves some bytes; idea from mickey@ | markus | 2003-04-09 | 1 | -2/+2 |
| |