summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/yarrow
Commit message (Collapse)AuthorAgeFilesLines
* Remove ChangeLog files from the source tree. From now on, theSam Hartman2006-04-111-158/+0
| | | | | | | subversion commit log entry needs to include information that would have been in the changelog. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17893 dc483132-0cff-0310-8789-dd5450dbe970
* don't use configure-defined macros on command line, use autoconf.h onlyKen Raeburn2006-04-022-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17830 dc483132-0cff-0310-8789-dd5450dbe970
* make depend, now with dependency sortingKen Raeburn2006-03-311-19/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17811 dc483132-0cff-0310-8789-dd5450dbe970
* make dependKen Raeburn2006-03-271-8/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17786 dc483132-0cff-0310-8789-dd5450dbe970
* Instead of arbitrary division of headers into include and include/krb5, withKen Raeburn2006-03-113-7/+11
| | | | | | | | | | | | include directives sometimes using krb5/foo.h and sometimes using foo.h, and -I options always given for both directories in both source and build trees, push include/krb5/* up a level and drop the krb5 directory (except, for the moment, the change log). Updated #include directives, -I options, and dependencies accordingly, and deleted one or two bits of old, unused code that was noticed in the process. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17730 dc483132-0cff-0310-8789-dd5450dbe970
* make dependKen Raeburn2006-03-081-2/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17708 dc483132-0cff-0310-8789-dd5450dbe970
* make dependTom Yu2005-11-291-14/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17505 dc483132-0cff-0310-8789-dd5450dbe970
* Update dependenciesKen Raeburn2005-06-211-8/+14
| | | | | | | | | N.B.: The version of gcc used this time ("gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)") seems to emit some duplicate dependencies -- some header files get listed twice. This is annoying but shouldn't cause any harm.... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17256 dc483132-0cff-0310-8789-dd5450dbe970
* * ytypes.h: Include autoconf.h. Include sys/types.h only if it existsKen Raeburn2005-05-012-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17210 dc483132-0cff-0310-8789-dd5450dbe970
* * yarrow.c: Delete old macintosh support.Ken Raeburn2005-04-282-13/+21
| | | | | | | | | (yarrow_input_maybe_locking): Do the optional locking, and verify that the mutex is locked, before doing anything else. (yarrow_reseed_locked): Verify that the global mutex is locked before doing anything else. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17204 dc483132-0cff-0310-8789-dd5450dbe970
* * yarrow.c (yarrow_reseed_locked): Renamed from krb5int_yarrow_reseed and madeKen Raeburn2005-01-142-6/+27
| | | | | | | | | | | | | | static. (Yarrow_detect_fork, yarrow_input_maybe_locking, krb5int_yarrow_output_Block): Call it. (krb5int_yarrow_reseed): New function, grabs lock and calls the old version. (krb5int_yarrow_final): Hold the lock until after clearing the Yarrow context data. ticket: 2878 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17032 dc483132-0cff-0310-8789-dd5450dbe970
* Tree does not compile with GCC 4.0Ezra Peisach2005-01-132-0/+6
| | | | | | | | | | | | * yarrow.c: Declare yarrow_gate_locked static before first use. GCC 4.0 snapshots are more particular about using a static function before a prototype is given. ticket: new status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17024 dc483132-0cff-0310-8789-dd5450dbe970
* run "make depend"Ken Raeburn2004-12-301-16/+16
| | | | | | | | In most library directories, this just affects where the line breaks are. In most other directories, it's just dropping a trailing blank line. One or two files really do have updated dependencies. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16987 dc483132-0cff-0310-8789-dd5450dbe970
* KDC on Tru64 was hanging because of another case where Yarrow codeKen Raeburn2004-11-232-12/+47
| | | | | | | | | | | | | | | | | assumes locks are recursive. Probably didn't trigger on Linux, Solaris, or NetBSD because they have /dev/random and Tru64 does not. * yarrow.c (yarrow_input_maybe_locking): Renamed from yarrow_input_maybe_locking, made static. New argument indicates whether or not to do locking. (krb5int_yarrow_input): New wrapper function. (yarrow_input_locked): New wrapper function. (Yarrow_detect_fork): Call yarrow_input_locked. ticket: 2755 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16903 dc483132-0cff-0310-8789-dd5450dbe970
* Convert Yarrow to use AES not 3des. Update test vectorsSam Hartman2004-11-162-5/+9
| | | | | | | ticket: 2410 Tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16870 dc483132-0cff-0310-8789-dd5450dbe970
* * yarrow.c (krb5int_yarrow_input, krb5int_yarrow_final): Don't check forKen Raeburn2004-11-012-7/+47
| | | | | | | | | | forking here. (yarrow_output_locked): Split out from krb5int_yarrow_output, without locking. (krb5int_yarrow_output): Do locking and call yarrow_output_locked. (yarrow_gate_locked): New function; uses yarrow_output_locked. (krb5int_yarrow_output_Block): Use yarrow_gate_locked. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16853 dc483132-0cff-0310-8789-dd5450dbe970
* push yarrow locking down into the yarrow code to reduce contentionKen Raeburn2004-10-302-1/+13
| | | | | | | | | | | | | | | | | | This seems to speed up creating a krb5_context a little bit, when it happens a lot in multiple threads. * prng.c (yarrow_lock): Rename to krb5int_yarrow_lock via macro, and change to be non-static. (krb5int_prng_init): Call do_yarrow_init here. (krb5_c_random_add_entropy): Don't call it here. Don't lock the mutex, either. (krb5_c_random_make_octets): Don't lock the mutex. * yarrow/ylock.h: Include k5-thread.h. (krb5int_yarrow_lock): Declare. (LOCK, UNLOCK): Define as macros using the k5_mutex_ macros. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16846 dc483132-0cff-0310-8789-dd5450dbe970
* * yarrow.c (yarrow_str_error): Now constKen Raeburn2004-06-042-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16415 dc483132-0cff-0310-8789-dd5450dbe970
* * yarrow.c (krb5int_yarrow_final): CallEzra Peisach2004-05-264-0/+23
| | | | | | | | | | | | krb5int_yarrow_cipher_final before zeroing out reference to memory. * ycipher.[ch] (krb5int_yarrow_cipher_final): Free CIPHER_CTX memory allocated by krb5int_yarrpw_cipher_init(). These cleanup handlers are now invoked in the library "fini" handlers. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16368 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2004-04-241-10/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16270 dc483132-0cff-0310-8789-dd5450dbe970
* make dependKen Raeburn2003-12-151-9/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15928 dc483132-0cff-0310-8789-dd5450dbe970
* Change crypto "provider" structures to hold numeric values instead of functionKen Raeburn2003-07-222-1/+7
| | | | | | | pointers for key sizes, block sizes, etc., when the values are always constant for each encryption or hash mechanism. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15714 dc483132-0cff-0310-8789-dd5450dbe970
* delete ##WIN16## lines from makefilesKen Raeburn2003-07-172-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15691 dc483132-0cff-0310-8789-dd5450dbe970
* make-depend updatesKen Raeburn2003-05-241-6/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15490 dc483132-0cff-0310-8789-dd5450dbe970
* Use markers in Makefile.in rather than rules in configure.in to indicate whenKen Raeburn2003-01-102-0/+7
| | | | | | | | to use the lib.in and libobj.in makefile fragments. Pushing this per-directory info into Makefile.in will make it a little easier to work on combining configure scripts for multiple directories. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15107 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2002-08-291-2/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14791 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Revert $(S)=>/ change, for Windows supportKen Raeburn2002-08-292-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14786 dc483132-0cff-0310-8789-dd5450dbe970
* Change $(S)=>/ and $(U)=>.. globallyKen Raeburn2002-08-232-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14761 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2002-06-151-8/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14522 dc483132-0cff-0310-8789-dd5450dbe970
* Use the canonical _WIN32 instead of WIN32 to test for Win32.Danilo Almeida2002-04-112-1/+9
| | | | | | Include port-sockets.h on Win32 (now that using WIN32_LEAN_AND_MEAN). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14375 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2002-03-261-0/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14290 dc483132-0cff-0310-8789-dd5450dbe970
* Don't right shift by 32Sam Hartman2002-01-142-1/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14108 dc483132-0cff-0310-8789-dd5450dbe970
* * yarrow.c (krb5int_yarrow_stretch): Delare local variable unsigned.Ezra Peisach2001-12-053-6/+17
| | | | | | | | | (krb5int_yarrow_init): Zero cipher context on init. * yhash.h (HASH_Final): Use a variable other than out (shadow in yarrow.c) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14047 dc483132-0cff-0310-8789-dd5450dbe970
* On fork, perturb the PRNG stream in the childSam Hartman2001-11-212-3/+17
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14016 dc483132-0cff-0310-8789-dd5450dbe970
* Work around hash using host byte orderSam Hartman2001-11-202-2/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14009 dc483132-0cff-0310-8789-dd5450dbe970
* Fix up yarrow build on WindowsDanilo Almeida2001-11-192-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14008 dc483132-0cff-0310-8789-dd5450dbe970
* * Link Yarrow into the buildSam Hartman2001-11-162-4/+13
| | | | | | | | | * Use Yarrow as the PRNG with the compatibility API * Write most of new PRNG entropy API * Write but (currently) do not use PRNG test harness * Fix Yarrow ciphers not to depend on libkrb5 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13982 dc483132-0cff-0310-8789-dd5450dbe970
* Rename to be consistent with krb5 libraries internalsSam Hartman2001-11-093-74/+74
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13975 dc483132-0cff-0310-8789-dd5450dbe970
* Compiles nowSam Hartman2001-11-098-23/+64
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13974 dc483132-0cff-0310-8789-dd5450dbe970
* We don't need thisSam Hartman2001-11-091-51/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13973 dc483132-0cff-0310-8789-dd5450dbe970
* Next pass at making things use krb5 types and functionsSam Hartman2001-11-096-139/+122
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13972 dc483132-0cff-0310-8789-dd5450dbe970
* First pass cleaning up headers and typesSam Hartman2001-11-084-55/+22
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13971 dc483132-0cff-0310-8789-dd5450dbe970
* Remove OS-dependent files.Sam Hartman2001-11-082-406/+0
| | | | | | | | | | | yseed contains some win32 code to seed based on system events etc. We may want to look at this in the future, but I want to get things working in a portable manner before I worry about OS-specific things. ystate.c contains routines to save/load state. We're not doing that now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13970 dc483132-0cff-0310-8789-dd5450dbe970
* Add Yarrow from http://www.zeroknowledge.com/Sam Hartman2001-11-0818-0/+2944
This is version 0.1 of their Yarrow implementation. I have flattened the distribution, copying files in the src directory directly into this directory. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13969 dc483132-0cff-0310-8789-dd5450dbe970