summaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand.h
AgeCommit message (Collapse)Author
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08remove FIPS_*_SIZE_TDr. Stephen Henson
Reviewed-by: Tim Hudson <tjh@openssl.org>
2011-04-05Extensive reorganisation of PRNG handling in FIPS module: all callsDr. Stephen Henson
now use an internal RAND_METHOD. All dependencies to OpenSSL standard PRNG are now removed: it is the applications resposibility to setup the FIPS PRNG and initalise it. Initial OpenSSL RAND_init_fips() function that will setup the DRBG for the "FIPS capable OpenSSL".
2011-02-03Add FIPS support to the WIN32 build system.Dr. Stephen Henson
2011-01-26add new RAND errorsDr. Stephen Henson
2009-09-23Audit libcrypto for unchecked return values: fix all cases enounteredDr. Stephen Henson
2008-11-12Revert the size_t modifications from HEAD that had led to moreGeoff Thorpe
knock-on work than expected - they've been extracted into a patch series that can be completed elsewhere, or in a different branch, before merging back to HEAD.
2008-11-01More size_tification.Ben Laurie
2004-05-17Make reservations for FIPS code in HEAD branch, so that the moment FIPSAndy Polyakov
comes in we have required macros in place.
2004-04-19Reduce header interdependencies, initially in engine.h (the rest of theGeoff Thorpe
changes are the fallout). As this could break source code that doesn't directly include headers for interfaces it uses, changes to recursive includes are covered by the OPENSSL_NO_DEPRECATED symbol. It's better to define this when building and using openssl, and then adapt code where necessary - this is how to stay current. However the mechanism exists for the lethargic.
2003-01-30Add the possibility to build without the ENGINE framework.Richard Levitte
PR: 287
2002-07-18OPENSSL_SYS_WIN32 is important so util/mkdef.pl can detect itRichard Levitte
2002-06-27opensslconf.h doesn't define what we want, e_os2.h does.Richard Levitte
PR 123
2002-06-27When compiling for Windows, make sure we have the windows definitions declared.Richard Levitte
Part of PR 123
2001-10-04Because there's chances we clash with the system's types.h, rename ourRichard Levitte
types.h to ossl_typ.h.
2001-09-25This commits changes to various parts of libcrypto required by the recentGeoff Thorpe
ENGINE surgery. DH, DSA, RAND, and RSA now use *both* "method" and ENGINE pointers to manage their hooking with ENGINE. Previously their use of "method" pointers was replaced by use of ENGINE references. See crypto/engine/README for details. Also, remove the ENGINE iterations from evp_test - even when the cipher/digest code is committed in, this functionality would require a different set of API calls.
2001-04-30In RSA, DSA, DH, and RAND - if the "***_new()" function fails because theGeoff Thorpe
ENGINE code does not return a default, set an error.
2001-04-18Some more tweaks from ENGINE code.Geoff Thorpe
Previously RAND_get_rand_method was returning a non-const pointer, but it should be const. As with all other such cases, METHOD pointers are stored and returned as "const". The only methods one should be able to alter are methods "local" to the relevant code, in which case a non-const handle to the methods should already exist. This change has been forced by the constifying of the ENGINE code (before which RAND_METHOD was the only method pointer in an ENGINE structure that was not constant).
2001-03-21Use stdlib.h to get size_t.Richard Levitte
2001-03-05Move ec.h to ec2.h because it is not compatible with what we will use.Bodo Möller
Add EC vaporware: change relevant Makefiles and add some empty source files. "make update".
2001-02-22Since RAND_file_name() uses strlen, make sure the number that'sRichard Levitte
compared to it has the type size_t. Included the needed headers to make that happen.
2001-02-19Make all configuration macros available for application by makingRichard Levitte
sure they are available in opensslconf.h, by giving them names starting with "OPENSSL_" to avoid conflicts with other packages and by making sure e_os2.h will cover all platform-specific cases together with opensslconf.h. I've checked fairly well that nothing breaks with this (apart from external software that will adapt if they have used something like NO_KRB5), but I can't guarantee it completely, so a review of this change would be a good thing.
2001-01-09Add automatic query of EGD sockets to RAND_poll(). The EGD sockets areLutz Jänicke
only queried when the /dev/[u]random devices did not return enough entropy. Only the amount of entropy missing to reach the required minimum is queried, as EGD may be drained. Queried locations are: /etc/entropy, /var/run/egd-pool
2000-10-26Merge the engine branch into the main trunk. All conflicts resolved.Richard Levitte
At the same time, add VMS support for Rijndael.
2000-07-26Fix warnings.Dr. Stephen Henson
In crypto/err/err.c need to initialise p to NULL in case thread_hash is NULL. Otherwise p will be uninitialized.
2000-07-19Randomness polling function for Win9x.Ulf Möller
2000-06-03EVP constification.Ben Laurie
2000-05-02In Message-ID: <003201bfb332$14a07520$0801a8c0@janm.transactionsite.com>,Richard Levitte
"Jan Mikkelsen" <janm@transactionsite.com> correctly states that the OpenSSL header files have #include's and extern "C"'s in an incorrect order. Thusly fixed.
2000-03-19New function RAND_event() collects entropy from Windows events.Ulf Möller
2000-03-02Use RAND_METHOD for implementing RAND_status.Bodo Möller
2000-02-28Fix for non-monolithic build.Ulf Möller
Submitted by: Andrew Gray <agray@iconsinc.com>
2000-02-24Support EGD.Ulf Möller
2000-02-19Allow for higher granularity of entropy estimates by using 'double'Bodo Möller
instead of 'unsigned' counters. Seed PRNG in MacOS/GetHTTPS.src/GetHTTPS.cpp. Partially submitted by Yoram Meroz <yoram@mail.idrive.com>.
2000-01-30Source code cleanups: Use void * rather than char * in lhash,Ulf Möller
eliminate some of the -Wcast-qual warnings (debug-ben-strict target)
2000-01-16New function RAND_pseudo_bytes() generated pseudorandom numbers thatUlf Möller
are not guaranteed to be unpredictable.
2000-01-13Precautions against using the PRNG uninitialized: RAND_bytes() nowUlf Möller
returns int (1 = ok, 0 = not seeded). New function RAND_add() is the same as RAND_seed() but takes an estimate of the entropy as an additional argument.
1999-04-26Remove NOPROTO definitions and error code comments.Ulf Möller
1999-02-09More exactitude with function arguments.Ben Laurie
1999-01-24Minor constification.Ben Laurie
1998-12-21Import of old SSLeay release: SSLeay 0.9.1b (unreleased)SSLeayRalf S. Engelschall
1998-12-21Import of old SSLeay release: SSLeay 0.9.0bRalf S. Engelschall
1998-12-21Import of old SSLeay release: SSLeay 0.8.1bRalf S. Engelschall