summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto
Commit message (Collapse)AuthorAgeFilesLines
...
* Use new comparison inline fnKen Raeburn2007-05-101-3/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19545 dc483132-0cff-0310-8789-dd5450dbe970
* Store a little more detail for unknown enctype errorKen Raeburn2007-03-251-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19264 dc483132-0cff-0310-8789-dd5450dbe970
* Ensure consistancy between prototypes and functionsEzra Peisach2007-02-191-3/+3
| | | | | | | | | | | | I am using an older compiler that is complaining that prototypes do not match the functions they reference. The issue is that a number of prototypes are using "const int foo" while the function is "int foo". From a caller sense it makes no difference - but the compiler is correct they are different. All is now consistant. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19169 dc483132-0cff-0310-8789-dd5450dbe970
* sortKen Raeburn2007-01-271-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19114 dc483132-0cff-0310-8789-dd5450dbe970
* bump minor versions due to API additionsTom Yu2006-12-011-1/+1
| | | | | | | ticket: 4689 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18894 dc483132-0cff-0310-8789-dd5450dbe970
* update krb5_c_keylength function, create krb5_c_random_to_key functionKevin Coffman2006-11-174-10/+103
| | | | | | | | | | | | | | | Modify the keylength function to return both keybytes and keylength. Change the name of the function and source file to reflect this. Add a function, krb5_c_random_to_key() that takes random input data of the right length (keybytes) and produce a valid key for a given enctype. ticket: new Target_Version: 1.6 Tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18836 dc483132-0cff-0310-8789-dd5450dbe970
* Add public function to get keylenth associated with an enctypeKevin Coffman2006-11-093-0/+67
| | | | | | | | | | Add a new function, krb5_c_keylength, to libk5crypto to obtain the keylength associated with an enctype. ticket: new Tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18789 dc483132-0cff-0310-8789-dd5450dbe970
* Make clean does not remove lib/crypto/t_prfEzra Peisach2006-11-051-1/+1
| | | | | | | | | Remove t_prf and t_prf.o on make clean. ticket: new tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18762 dc483132-0cff-0310-8789-dd5450dbe970
* * prng.c (init_error): Unused variable deletedKen Raeburn2006-11-021-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18756 dc483132-0cff-0310-8789-dd5450dbe970
* Cleanup unused variable warning during make checkEzra Peisach2006-10-151-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18713 dc483132-0cff-0310-8789-dd5450dbe970
* Use $(VALGRIND) when running programs using $(KRB5_RUN_ENV) orKen Raeburn2006-10-138-19/+19
| | | | | | | | | | | | | | | | | | $(RUN_SETUP). Replaces old hack with MAYBE_VALGRIND added to RUN_ENV in a way that would break in some of the tests. Set VALGRIND in site.exp in tests/dejagnu. (Not used yet.) Runs some shell scripts under valgrind, rather than changing them to run only the executables under valgrind; this is mostly okay, just creates lots of extra log data, and requires --trace-children=yes. This should work for any instrumentation program invocation that gets followed immediately by the name and argument list for the program being instrumented. For example, VALGRIND="env LD_PRELOAD=..." should work, though I haven't tested it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18699 dc483132-0cff-0310-8789-dd5450dbe970
* make dependTom Yu2006-10-0615-199/+236
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18652 dc483132-0cff-0310-8789-dd5450dbe970
* Removed unused Metrowerks compiler support.Alexandra Ellwood2006-07-251-4/+0
| | | | | | | | | (Since there's no universal binary support for CodeWarrior there's no point in having this here.) ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18394 dc483132-0cff-0310-8789-dd5450dbe970
* autoconf 2.60 compatibilityKen Raeburn2006-06-2815-16/+16
| | | | | | | | | | | Change all file substitutions so that @-patterns start at the beginning of their lines, as now required by autoconf 2.60 (released Monday). ticket: new target_version: 1.5 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18249 dc483132-0cff-0310-8789-dd5450dbe970
* Create crypto, des425 Makefiles from top levelKen Raeburn2006-05-2516-41/+30
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18042 dc483132-0cff-0310-8789-dd5450dbe970
* Rename locate.h to locate_plugin.h. Change references, update dependenciesKen Raeburn2006-05-2415-84/+84
| | | | | | ticket: 3784 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18037 dc483132-0cff-0310-8789-dd5450dbe970
* install headers into include/krb5Ken Raeburn2006-05-2315-446/+493
| | | | | | | | | | | Create include/krb5 directory, and put krb5.h and (k5-)locate.h there in the build tree. Stub krb5.h in main include directory just includes krb5/krb5.h. Update dependencies, and add dependencies in a couple Makefiles that didn't have them. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18030 dc483132-0cff-0310-8789-dd5450dbe970
* shsUpdate should take an unsigned int for lengthEzra Peisach2006-04-205-8/+8
| | | | | | | | | | | | | | Update shsUpdate to take an unsigned int length instead of signed. The code already assumes that it is an integer >= 0. This change cleans up a number of signed/unsigned warnings. sha1/shs.h, shs.c, t_shs.c: change ints to unsigned int dk/dk_encrypt.c: static function trunc_hmac change a signed int to unsigned hash_provider/hash_sha1.c: Remove cast in argument to shsUpdate ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17945 dc483132-0cff-0310-8789-dd5450dbe970
* Don't include kdb.h from k5-int.h; instead, include it in the handfulKen Raeburn2006-04-1315-244/+197
| | | | | | of places where it's actually needed. Update dependencies. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17898 dc483132-0cff-0310-8789-dd5450dbe970
* Remove ChangeLog files from the source tree. From now on, theSam Hartman2006-04-1115-4015/+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
* Remove .Sanitize and .rconf files, no longer usedKen Raeburn2006-04-116-277/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17888 dc483132-0cff-0310-8789-dd5450dbe970
* include autoconf.h in a few more placesKen Raeburn2006-04-032-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17835 dc483132-0cff-0310-8789-dd5450dbe970
* don't use configure-defined macros on command line, use autoconf.h onlyKen Raeburn2006-04-0230-0/+75
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17830 dc483132-0cff-0310-8789-dd5450dbe970
* make depend, now with dependency sortingKen Raeburn2006-03-3115-642/+658
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17811 dc483132-0cff-0310-8789-dd5450dbe970
* * aesopt.h: Include autoconf.hKen Raeburn2006-03-303-3/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17806 dc483132-0cff-0310-8789-dd5450dbe970
* * shs.c: Include shs.h firstKen Raeburn2006-03-302-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17805 dc483132-0cff-0310-8789-dd5450dbe970
* fill a paragraph in a comment because it's making my scripted parsing difficultKen Raeburn2006-03-301-5/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17798 dc483132-0cff-0310-8789-dd5450dbe970
* make dependKen Raeburn2006-03-2715-243/+276
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17786 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (check-unix): Use RUN_SETUPKen Raeburn2006-03-132-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17736 dc483132-0cff-0310-8789-dd5450dbe970
* Instead of arbitrary division of headers into include and include/krb5, withKen Raeburn2006-03-1117-240/+244
| | | | | | | | | | | | 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-0815-84/+168
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17708 dc483132-0cff-0310-8789-dd5450dbe970
* Include the support library when linking various test programs, because onKen Raeburn2006-01-1810-19/+42
| | | | | | | | | Solaris, with the vendor compiler, we'll always get references to krb5int_pthread_loaded due to unused inline functions not being eliminated. (Also inclued it in dependencies, and use CC_LINK when it wasn't used before.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17592 dc483132-0cff-0310-8789-dd5450dbe970
* Remove krb5_callconv from non-exported internal functionSam Hartman2006-01-112-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17585 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (t_crc): Build against support library.Ken Raeburn2005-12-022-3/+8
| | | | | | (check-unix): Use $(RUN_SETUP). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17543 dc483132-0cff-0310-8789-dd5450dbe970
* make dependTom Yu2005-11-2915-317/+218
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17505 dc483132-0cff-0310-8789-dd5450dbe970
* don't break make depend in lib/crypto on k5-int.h orderingTom Yu2005-11-293-6/+6
| | | | | | | | | | * t_cts.c, vectors.c: Don't include krb5.h. ticket: new tags: pullup target_version: 1.4.4 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17504 dc483132-0cff-0310-8789-dd5450dbe970
* * t_hmac.c, t_pkcs5.c: Don't include krb5.hKen Raeburn2005-11-183-2/+4
| | | | | | ticket: 3236 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17499 dc483132-0cff-0310-8789-dd5450dbe970
* * arcfour_s2k.c (asctouni): Counter should be size_t, like lenKen Raeburn2005-10-192-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17435 dc483132-0cff-0310-8789-dd5450dbe970
* Delete .cvsignore files; contents have already been Sam Hartman2005-08-248-23/+0
| | | | | | set on svn:ignore properties. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17353 dc483132-0cff-0310-8789-dd5450dbe970
* All configure.in scripts: Use K5_AC_INIT instead of AC_INITKen Raeburn2005-08-202-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17342 dc483132-0cff-0310-8789-dd5450dbe970
* rename string_to_key.c to arcfour_s2k.cKen Raeburn2005-07-023-5/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17291 dc483132-0cff-0310-8789-dd5450dbe970
* rename arcfour.c to rc4.cKen Raeburn2005-07-023-12/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17290 dc483132-0cff-0310-8789-dd5450dbe970
* Update dependenciesKen Raeburn2005-06-2115-196/+320
| | | | | | | | | 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
* * destest.c (main): Force testing of unaligned access to input, output, and keyKen Raeburn2005-06-102-3/+17
| | | | | | blocks. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17237 dc483132-0cff-0310-8789-dd5450dbe970
* * f_tables.h: Include k5-platform.h.Ken Raeburn2005-06-092-11/+9
| | | | | | | (GET_HALF_BLOCK): Use load_32_be. (PUT_HALF_BLOCK): Use store_32_be. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17231 dc483132-0cff-0310-8789-dd5450dbe970
* Make "make check" able to link things again..Ken Raeburn2005-05-242-1/+7
| | | | | | | * keyblocks.c (krb5int_c_free_keyblock): Call krb5int_c_free_keyblock_contents instead of krb5_free_keyblock_contents. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17220 dc483132-0cff-0310-8789-dd5450dbe970
* Implement RFC 3961 PRFSam Hartman2005-05-2011-21/+454
| | | | | | | | | | | | | | Add krb5_c_prf, a function that implements the RFC 3961 PRF. As part of this change, the krb5_init_keyblock and krb5 free routines move to libk5crypto. Public stubs remain in libkrb5, but the actual implementation is an internal interface in libk5crypto ticket: new Tags: enhancement git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17219 dc483132-0cff-0310-8789-dd5450dbe970
* build failure on sparc64-solarisKen Raeburn2005-05-042-1/+5
| | | | | | | | | | | | Mike Friedman at Berkeley reports (on kerberos@mit) that the build fails linking the aes-gen program if the tree is configured with CC=gcc and CFLAGS=-m64. * Makefile.in (aes-gen): Use CC_LINK. Reported by Mike Friedman. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17212 dc483132-0cff-0310-8789-dd5450dbe970
* typo fixKen Raeburn2005-05-011-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17211 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