summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/rand
AgeCommit message (Collapse)AuthorFilesLines
2017-01-29Send the function codes from the error functions to the bit bucket,beck1-4/+2
as was done earlier in libssl. Thanks inoguchi@ for noticing libssl had more reacharounds into this. ok jsing@ inoguchi@
2015-09-10Correct spelling of OPENSSL_cleanse.jsing1-2/+2
ok miod@
2015-07-18rand_err doesn't exist anymore, coverity 78808beck1-3/+3
ok doug@
2014-10-22Place most of the RAND_* functions under #ifndef LIBRESSL_INTERNAL (somejsing1-1/+4
are still needed for the engine). Our code should use arc4random instead.
2014-10-22Use arc4random_buf() instead of RAND_bytes() or RAND_pseudo_bytes().jsing2-6/+5
arc4random_buf() is guaranteed to always succeed - it is worth noting that a number of the replaced function calls were already missing return value checks. ok deraadt@
2014-07-14Improve RAND_write_file(), chmod crud, etc.deraadt1-27/+19
ok tedu
2014-07-11Only import cryptlib.h in the four source files that actually need it.jsing1-2/+1
Remove the openssl public includes from cryptlib.h and add a small number of includes into the source files that actually need them. While here, also sort/group/tidy the includes. ok beck@ miod@
2014-07-10Explicitly include <openssl/opensslconf.h> in every file that referencesjsing3-5/+11
an OPENSSL_NO_* define. This avoids relying on something else pulling it in for us, plus it fixes several cases where the #ifndef OPENSSL_NO_XYZ is never going to do anything, since OPENSSL_NO_XYZ will never defined, due to the fact that opensslconf.h has not been included. This also includes some miscellaneous sorting/tidying of headers.
2014-06-12tags as requested by miod and teduderaadt4-3/+4
2014-05-24More KNF.jsing1-2/+2
2014-05-24KNF.jsing4-91/+91
2014-05-24Another e_os2.h -> opensslconf.h.jsing1-1/+3
2014-04-19use intrinsic strlcpy and strlcat everywhere so we only have one set ofbeck1-1/+1
funcitons to check for incorrect use. keep BUF_strlcpy and BUF_strlcat for API comptibility only. ok tedu@
2014-04-18Put the final pieces from e_os.h in the required places, and remove it.deraadt1-1/+0
"dance on it's grave" says beck ok guenther beck
2014-04-18another round of chemo for the RAND code to provide clarity.tedu4-379/+85
ok deraadt
2014-04-18egd support is too dangerous to leave where somebody might find it.tedu2-113/+0
ok deraadt.
2014-04-18define RFILE only in the file that needs itderaadt1-1/+1
2014-04-16Some software expects RAND_status() to return 1 for success, so alwaysreyk1-2/+10
return 1 in the arc4random backend because there is no possible error condition. Unbreaks lynx, git and friends. ok miod@ dcoppa@
2014-04-16API compat fix. RAND_load_file can never fail now. discovered and ok beck.tedu1-3/+7
2014-04-15we don't use these files for buildingtedu1-77/+0
2014-04-15Moved to regress/lib/libcrypto.miod1-219/+0
2014-04-15Replace the old OpenSSL PRNG by direct use of arc4random_buf(), keeping themiod8-1565/+52
existing RAND interfaces unchanged. All interfaces allowing external feed or seed of the RNG (either from a file or a local entropy gathering daemon) are kept for ABI compatibility, but are no longer do anything. While the OpenSSL PRNG was required 15+ years ago when many systems lacked proper entropy collection, things have evolved and one can reasonably assume it is better to use the kernel (system global) entropy pool rather than trying to build one's own and having to compensate for thread scheduling... <RANT> Whoever thought that RAND_screen(), feeding the PRNG with the contents of the local workstation's display, under Win32, was a smart idea, ought to be banned from security programming. </RANT> ok beck@ deraadt@ tedu@
2014-04-14remove auto-generated dependencies from the old unused build system, soderaadt1-87/+0
that it is easier to find code pieces. They are getting in the way. ok miod
2014-04-14Don't bother compiling files which end up containingmiod4-1291/+0
#if OPENSSL_SYS_NOTYOURS <whole file> #endif
2014-04-13Remove some stuff that isn't needed.beck1-1/+1
ok miod@ deraadt@
2014-04-13Merge conflicts; remove MacOS, Netware, OS/2, VMS and Windows build machinery.miod6-9/+39
2012-10-13resolve conflictsdjm5-18/+149
2012-01-05OpenSSL 1.0.0f: mergedjm1-32/+72
2011-11-03openssl-1.0.0e: resolve conflictsdjm3-9/+24
2011-11-03import OpenSSL 1.0.0edjm1-2/+2
2010-10-01resolve conflicts, fix local changesdjm12-570/+203
2010-10-01import OpenSSL-1.0.0adjm1-0/+6
2009-04-06resolve conflictsdjm2-3/+3
2009-01-09resolve conflictsdjm7-47/+233
2009-01-09import openssl-0.9.8jdjm1-0/+152
2009-01-05update to openssl-0.9.8i; tested by several, especially krw@djm1-6/+11
2008-09-10use one call to arc4random_buf() instead of lots of arc4random()djm1-8/+2
2008-09-06resolve conflictsdjm9-136/+164
2008-09-06import of OpenSSL 0.9.8hdjm2-89/+235
2006-06-27resolve conflictsdjm3-24/+32
2006-06-27import of openssl-0.9.7jdjm1-1/+1
2005-04-29resolve conflictsdjm8-55/+135
2005-04-29import of openssl-0.9.7g; tested on platforms from alpha to zaurus, ok deraadt@djm2-2/+199
2004-04-08merge 0.9.7dmarkus4-11/+24
2003-11-11merge 0.9.7c; minor bugsfixes;markus1-4/+10
API addition: ERR_release_err_state_table [make includes before you build libssl/libcrypto]
2003-05-12merge 0.9.7b with local changes; crank majors for libssl/libcryptomarkus9-41/+90
2003-04-03str{cat,cpy}/sprintf cleanup. markus@, deraadt@ okho1-1/+1
2003-03-16Less strcpy/strcat/sprintf. tdeval@ ok.ho1-1/+1
2002-09-17use arc4random instead of /dev/arandom,markus1-30/+11
allows RAND_poll after chroot, ok deraadt, fgsch
2002-09-10merge openssl-0.9.7-beta3, tested on vax by miod@markus5-38/+118