summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/yarrow/yarrow.c
Commit message (Collapse)AuthorAgeFilesLines
* Crypto modularity proj: Separate files under crypto directory based on their ↵Zhanna Tsitkov2009-08-031-958/+0
| | | | | | | | functionality. Move Kerberos specific files into krb subdir and MIT specific - into builtin subdir. Place all tests into crypto_tests subfolder. bigredbutton: whitespace git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22477 dc483132-0cff-0310-8789-dd5450dbe970
* In the previous patch - I neglected a potential NULL deref in the callEzra Peisach2009-06-171-1/+3
| | | | | | | | to krb5int_yarrow_cipher_final. Trivial fix. ticket: 6512 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22413 dc483132-0cff-0310-8789-dd5450dbe970
* krb5int_yarrow_final could deref NULL if out of memoryEzra Peisach2009-06-111-1/+2
| | | | | | | | | | | krb5int_yarrow_final tests if the Yarrow_CTX* is valid (not NULL) - and if not - signals and error for return - but still invokes mem_zero (memset) with it as an argument. This will only happen in an out-of-memory situation. ticket: 6512 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22410 dc483132-0cff-0310-8789-dd5450dbe970
* * yarrow.c: Delete old macintosh support.Ken Raeburn2005-04-281-13/+13
| | | | | | | | | (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-141-6/+16
| | | | | | | | | | | | | | 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-131-0/+2
| | | | | | | | | | | | * 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
* KDC on Tru64 was hanging because of another case where Yarrow codeKen Raeburn2004-11-231-12/+38
| | | | | | | | | | | | | | | | | 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
* * yarrow.c (krb5int_yarrow_input, krb5int_yarrow_final): Don't check forKen Raeburn2004-11-011-7/+37
| | | | | | | | | | 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
* * yarrow.c (yarrow_str_error): Now constKen Raeburn2004-06-041-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16415 dc483132-0cff-0310-8789-dd5450dbe970
* * yarrow.c (krb5int_yarrow_final): CallEzra Peisach2004-05-261-0/+1
| | | | | | | | | | | | 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
* Use the canonical _WIN32 instead of WIN32 to test for Win32.Danilo Almeida2002-04-111-1/+3
| | | | | | 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
* Don't right shift by 32Sam Hartman2002-01-141-1/+1
| | | | 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-051-1/+4
| | | | | | | | | (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-211-3/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14016 dc483132-0cff-0310-8789-dd5450dbe970
* Rename to be consistent with krb5 libraries internalsSam Hartman2001-11-091-25/+25
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13975 dc483132-0cff-0310-8789-dd5450dbe970
* Compiles nowSam Hartman2001-11-091-7/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13974 dc483132-0cff-0310-8789-dd5450dbe970
* Next pass at making things use krb5 types and functionsSam Hartman2001-11-091-5/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13972 dc483132-0cff-0310-8789-dd5450dbe970
* First pass cleaning up headers and typesSam Hartman2001-11-081-3/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13971 dc483132-0cff-0310-8789-dd5450dbe970
* Add Yarrow from http://www.zeroknowledge.com/Sam Hartman2001-11-081-0/+868
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