summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto
Commit message (Collapse)AuthorAgeFilesLines
...
* * des_int.h: Change prototypes for mit_des_cbc_encrypt(),Ezra Peisach2000-10-177-12/+32
| | | | | | | | | | | | | | | | | | | | mit_des_cbc_cksum(), and mit_des3_cbc_encrypt() to take unsigned long lengths. * d3_cbc.c (mit_des3_cbc_encrypt): Length argument now takes an unsigned long. * f_cbc.c (mit_des_cbc_encrypt): Length argument now takes an unsigned long. * f_cksum.c (mit_des_cbc_cksum): Length argument now takes an unsigned long. * string2key.c: Unsigned/signed int cleanup. Test for a salt-length of SALT_TYPE_AFS_LENGTH or -1 (for backwards compatibilty) for use of mit_afs_string_to_key(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12774 dc483132-0cff-0310-8789-dd5450dbe970
* * descbc.c, k5_md4des.c, k5_md5des.c, t_cksum.c: Cleanup unsignedEzra Peisach2000-09-256-20/+34
| | | | | | | | | vs. signed warnings. * Makefile.in (t_cksum5, t_cksum4): Executables do not need to link with the krb5 library. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12670 dc483132-0cff-0310-8789-dd5450dbe970
* * afsstring2key.c: Initialization of S[8][64] - each 64 elementsEzra Peisach2000-06-302-32/+37
| | | | | | | | enclosed in brackets. gcc -Wall complaint. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12479 dc483132-0cff-0310-8789-dd5450dbe970
* crypto_libinit.c: Add prototype for prng_cleanup()Ezra Peisach2000-06-302-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12478 dc483132-0cff-0310-8789-dd5450dbe970
* prng.c (prng_cleanup): Ensure memory allocated before calling freeEzra Peisach2000-06-292-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12458 dc483132-0cff-0310-8789-dd5450dbe970
* Get rid of unused variableEzra Peisach2000-06-282-2/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12448 dc483132-0cff-0310-8789-dd5450dbe970
* des.c, des3.c: Remove unused variablesEzra Peisach2000-06-283-4/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12447 dc483132-0cff-0310-8789-dd5450dbe970
* afsstring2key.c: "register x" -> "register int x"Ezra Peisach2000-06-282-3/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12446 dc483132-0cff-0310-8789-dd5450dbe970
* pullup from 1.2 branchKen Raeburn2000-06-2710-13/+99
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12442 dc483132-0cff-0310-8789-dd5450dbe970
* Check for existance of <memory.h>.Wilfredo Sanchez2000-06-013-0/+9
| | | | | | (from Nathan Neulinger <nneul@umr.edu>) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12332 dc483132-0cff-0310-8789-dd5450dbe970
* Change wsanchez@apple -> tritan@mitWilfredo Sanchez2000-06-0112-24/+24
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12331 dc483132-0cff-0310-8789-dd5450dbe970
* * t_verify.c: Add "const" to casts in calls to mit_des_cbc_encrypt()Ezra Peisach2000-02-253-5/+12
| | | | | | | * destest.c: Declare zeroblock as krb5_octet * instead of char * as argument to mit_des_cbc_encrypt. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12068 dc483132-0cff-0310-8789-dd5450dbe970
* * crypto_libinit.c: Add terminating newline; use 0 and 1 insteadTom Yu2000-01-242-4/+9
| | | | | | of false and true. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11962 dc483132-0cff-0310-8789-dd5450dbe970
* Moved krb5, gss, and crypto library initialization/cleanup code into new ↵Miro Jurisic2000-01-225-0/+52
| | | | | | dedicated functions; added code to release global state allocated in prng.c git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11960 dc483132-0cff-0310-8789-dd5450dbe970
* Various changes to:Ken Raeburn2000-01-2245-143/+203
| | | | | | | | | | | | | | * make most non-changing data const * silence "gcc -Wall -Werror" complaints on sparc-solaris2.6 ** delete unused functions and variables ** change if(a=b) ... to if((a=b)) or if((a=b)!=0) [yeah, kinda gratuitous] ** insert extra braces for 2-D arrays * some basic thread safety checks Not changing afsstring2key.c until I make sure I've got some tests for it. Currently, prng.c and afsstring2key.c, at least, still aren't thread-safe. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11959 dc483132-0cff-0310-8789-dd5450dbe970
* * prng.c (enc): Now static and const, and points to constKen Raeburn2000-01-222-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11958 dc483132-0cff-0310-8789-dd5450dbe970
* Avoid non-const static data, and gcc warnings Solaris, except afsstring2key.c:Ken Raeburn2000-01-224-15/+42
| | | | | | | | | | * f_sched.c (PC2_C, PC2_D): Put braces around sub-arrays. * f_tables.c (des_SP_table): Ditto. * weak_key.c (weak): Now const. (mit_des_is_weak_key): Adjust pointer type accordingly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11957 dc483132-0cff-0310-8789-dd5450dbe970
* log tritan's changesTom Yu1999-10-2612-0/+84
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11877 dc483132-0cff-0310-8789-dd5450dbe970
* Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, LOCAL_INCLUDES suchWilfredo Sanchez1999-10-2612-19/+14
| | | | | | | that one can override CFLAGS from the command line without losing CPP search patchs and defines. Some associated Makefile cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11876 dc483132-0cff-0310-8789-dd5450dbe970
* copyright notice updates from 1.1 branchKen Raeburn1999-09-2414-14/+56
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11853 dc483132-0cff-0310-8789-dd5450dbe970
* Tom's cryptosystem alias entries from 1.1 branchKen Raeburn1999-09-013-0/+31
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11763 dc483132-0cff-0310-8789-dd5450dbe970
* memmove/bcopy fix from 1.1 branchKen Raeburn1999-09-012-0/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11762 dc483132-0cff-0310-8789-dd5450dbe970
* * etypes.c: Update des3-cbc-sha1 to alignt with new numberTom Yu1999-08-183-4/+12
| | | | | | | | | assignments. * cksumtypes.c: Update hmac-sha1-des3 to align with new number assignments. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11684 dc483132-0cff-0310-8789-dd5450dbe970
* * dk_encrypt.c (krb5_marc_dk_encrypt): CallTom Yu1999-06-292-1/+7
| | | | | | | krb5_marc_dk_encrypt_length() instead of krb5_dk_encrypt_length() to prevent blocksize errors. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11532 dc483132-0cff-0310-8789-dd5450dbe970
* These are a bunch of intertwined changes to the windows build.Danilo Almeida1999-05-192-33/+37
| | | | | | | | | | | | | | | | | | | | | | | | This log message includes all of the different changes across several Makefile.in files (and win-pre.in and win-post.in): - Remove "-" from recursive windows make invocations so that we can bail on a build error. New MIGNORE option restores the previous bailing behavior. - Update windows readme to reflect current practices. - Add NO_OUTDIR synonym for NO_OUTPRE in windows build. - Top-level windows Makefile now builds util which now builds util/windows, util/et, and util/profile (instead of building them directly). - Remove trailing backslash from rule that creates the windows output dir. This backslash would cause the rule to always be invoked. - Move WCONFIG and WCONFIG_EXE definitions into win-pre.in. - Remove rules in include directory that blindly copy include header files from gssapi, et, and profile. Instead, use/add build rules to the components that generate them that copy only when the file changes. - Use dependencies in include/krb5 to copy header files instead of blindly copying them. Add !if 0/!endif wrapper to Unix version of the rules. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11464 dc483132-0cff-0310-8789-dd5450dbe970
* Do win32 build in subdirDanilo Almeida1999-05-1024-84/+132
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11432 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed typo in SRCSMiro Jurisic1999-01-221-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11122 dc483132-0cff-0310-8789-dd5450dbe970
* * make_checksum.c (krb5_c_make_checksum): Note the fact that we'reTom Yu1999-01-054-1/+38
| | | | | | | | | | | | | | | | punting on dealing with backwards compat with length-included checksums. * etypes.c: Add ENCTYPE_LOCAL_DES3_HMAC_SHA1 as a temporary kludge. Note that this is added to the end of the array so other code can lop off the last member of the array and the right thing will happen so that it is possible to disable des3-marc-hmac-sha1 from the KDC command line, for instance. * configure.in: Conditionalize ATHENA_DES3_KLUDGE on --enable-athena. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11099 dc483132-0cff-0310-8789-dd5450dbe970
* * dk.h: Add prototypes for krb5_marc_dk_*Tom Yu1999-01-055-0/+389
| | | | | | | | | | | | | | * dk_encrypt.c (krb5_marc_dk_encrypt): Add compat for 32-bit length coded ciphertext. * dk_decrypt.c (krb5_marc_dk_decrypt): Add compat for 32-bit length coded ciphertext. * checksum.c: Add compat for 32-bit length included checksum. Note that nothing uses this at the moment, and probably shouldn't. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11098 dc483132-0cff-0310-8789-dd5450dbe970
* * old_decrypt.c (krb5_old_decrypt): Initialize the ivec to the keyTom Yu1998-12-162-1/+17
| | | | | | | | | | if we're using DES_CBC_CRC, for backwards compatibility. We weren't noticing this before because it only trashes the first block, which is the confounder, which we weren't actually verifying because checksum was unconditionally succeeding prior to the other patch. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11092 dc483132-0cff-0310-8789-dd5450dbe970
* * old_decrypt.c (krb5_old_decrypt): Actually compare theTom Yu1998-12-112-1/+6
| | | | | | calculated checksum against the provided checksum. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11091 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-12-0524-0/+85
| | | | | | to buildtop and thisconfigdir, respectively.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11083 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Added missing "cd .." necessary for making this compileTheodore Tso1998-12-052-2/+11
| | | | | | under Windows. Also added missing *.lst files to OBJFILELIST. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11071 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed busted Makefile so that it compiles under WindowsTheodore Tso1998-12-052-3/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11070 dc483132-0cff-0310-8789-dd5450dbe970
* Added KRB5_DLLIMP and KRB5_CALLCONV so that these files buildTheodore Tso1998-12-0511-27/+46
| | | | | | under Windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11069 dc483132-0cff-0310-8789-dd5450dbe970
* Fixes to build out of source treeEzra Peisach1998-11-064-5/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11020 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed filename uniqueness problems by renaming all of the *.c filesTheodore Tso1998-11-055-3/+5
| | | | | | to be hash_*.c files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11017 dc483132-0cff-0310-8789-dd5450dbe970
* Make sure filenames are unique across all of the krb5 directories. RenamedTheodore Tso1998-11-059-12/+13
| | | | | | all of the */encrypt.c and */decrypt.c files to {dk,raw,old}_{en,de}crypt.c. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11014 dc483132-0cff-0310-8789-dd5450dbe970
* resurrectTom Yu1998-11-021-0/+203
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11007 dc483132-0cff-0310-8789-dd5450dbe970
* ressurect files missed by mergeTom Yu1998-11-0236-0/+3237
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11006 dc483132-0cff-0310-8789-dd5450dbe970
* pull up 3des implementation from the marc-3des branchMarc Horowitz1998-10-3095-6773/+2853
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11001 dc483132-0cff-0310-8789-dd5450dbe970
* resurrectingTom Yu1998-09-215-0/+1005
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10933 dc483132-0cff-0310-8789-dd5450dbe970
* oopTom Yu1998-09-211-0/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10932 dc483132-0cff-0310-8789-dd5450dbe970
* restoring deleted filesTom Yu1998-09-211-0/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10931 dc483132-0cff-0310-8789-dd5450dbe970
* fix incorrect versionTom Yu1998-09-211-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10930 dc483132-0cff-0310-8789-dd5450dbe970
* resurrect accidentally deleted filesTom Yu1998-09-211-0/+28
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10929 dc483132-0cff-0310-8789-dd5450dbe970
* restore accidentally deleted filesTom Yu1998-09-219-0/+1031
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10928 dc483132-0cff-0310-8789-dd5450dbe970
* merge of tlyu-3des-k4Tom Yu1998-09-1915-2064/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10922 dc483132-0cff-0310-8789-dd5450dbe970
* Replaced preprocessor symbol _MACINTOSH with macintosh, since macintosh is ↵Miro Jurisic1998-07-171-1/+1
| | | | | | the standard symbol defined by all Mac compiler (oh, sure, it doesn't have _. but at least it's always there) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10653 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (LIB): Rename to k5cryptoTom Yu1998-04-152-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10531 dc483132-0cff-0310-8789-dd5450dbe970