summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/des
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Change wsanchez@apple -> tritan@mitWilfredo Sanchez2000-06-011-2/+2
| | | | 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
* 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-261-0/+7
| | | | 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-261-1/+0
| | | | | | | 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-246-6/+24
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11853 dc483132-0cff-0310-8789-dd5450dbe970
* Do win32 build in subdirDanilo Almeida1999-05-102-14/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11432 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-12-052-0/+7
| | | | | | to buildtop and thisconfigdir, respectively.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11083 dc483132-0cff-0310-8789-dd5450dbe970
* pull up 3des implementation from the marc-3des branchMarc Horowitz1998-10-3025-1885/+206
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11001 dc483132-0cff-0310-8789-dd5450dbe970
* Remove trailing slash from thisconfigdir. Change directory syntaxTom Yu1998-02-182-2/+7
| | | | | | used in BUILDTOP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10464 dc483132-0cff-0310-8789-dd5450dbe970
* Collapse configure.in files below lib/crypto into lib/cryptoTheodore Tso1998-02-133-7/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10435 dc483132-0cff-0310-8789-dd5450dbe970
* Mass makefile/configure.in build system revampTheodore Tso1998-02-122-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10424 dc483132-0cff-0310-8789-dd5450dbe970
* * init_rkey.c (mit_des_init_random_key): Punt the struct; useTom Yu1997-12-292-7/+20
| | | | | | | | explicit variables instead because we're no longer doing a memcpy. In addition, fill p_state->sequence.data a byte at a time. [krb5-libs/492] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10344 dc483132-0cff-0310-8789-dd5450dbe970
* * d3_cbc.c, des.h, des_int.h, f_cbc.c, f_cksum.c, f_ecb.c,Tom Yu1997-10-2713-102/+103
| | | | | | | | | | | f_pcbc.c, f_sched.c, f_tables.c, f_tables.h: Change KRB_INT32 to DES_INT32 to avoid temptation to misuse. * d3_cbc.c, d3_ecb.c, f_cbc.c, f_cksum.c, f_ecb.c, f_parity.c, f_pcbc.c, f_sched.c, f_tables.c: Don't include des.h; it's broken in ways. Use only des_int.h instead. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10252 dc483132-0cff-0310-8789-dd5450dbe970
* Set KRB5_CONFIG for testsEzra Peisach1997-10-212-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10240 dc483132-0cff-0310-8789-dd5450dbe970
* * des_int.h: Use better logic to find an appropriate type forTom Yu1997-10-143-7/+42
| | | | | | | | | | | KRB_INT32; also don't assume that a key schedule element is exactly 64 bits wide... use instead 2 * KRB_INT32, since that is what the code uses internally. * des.h: Use better logic to find an appropriate type for KRB_INT32. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10228 dc483132-0cff-0310-8789-dd5450dbe970
* * destest.c (main): Initialize context to 0 so it will not beEzra Peisach1997-10-063-0/+16
| | | | | | | | | | | treated as unset by purify. * t_verify.c (main): Use krb5_free_context to release memory in use. Essentially purify cleanups... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10206 dc483132-0cff-0310-8789-dd5450dbe970
* Moved some of the library list file build logic from the individual MakefilesRichard Basch1997-02-232-12/+10
| | | | | | to config/win-post.in git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9964 dc483132-0cff-0310-8789-dd5450dbe970
* Removed unneeded call to krb5_init_etsRichard Basch1997-02-201-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9927 dc483132-0cff-0310-8789-dd5450dbe970
* Merge of libhack_branchTom Yu1997-02-093-28/+49
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9831 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Create shared directory before building object filesRichard Basch1997-02-072-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9812 dc483132-0cff-0310-8789-dd5450dbe970
* Windows/NT integration (V1_0_WIN32_BRANCH merge)Richard Basch1997-02-063-17/+39
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9788 dc483132-0cff-0310-8789-dd5450dbe970
* nuke leftover conflict markerMark Eichin1996-10-311-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9255 dc483132-0cff-0310-8789-dd5450dbe970
* this commit includes all the changes on the OV_9510_INTEGRATION andMarc Horowitz1996-07-222-1/+6
| | | | | | | | | OV_MERGE branches. This includes, but is not limited to, the new openvision admin system, and major changes to gssapi to add functionality, and bring the implementation in line with rfc1964. before committing, the code was built and tested for netbsd and solaris. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8774 dc483132-0cff-0310-8789-dd5450dbe970
* Add space before \ to deal with SunOS version of make which losesEzra Peisach1996-06-152-3/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8365 dc483132-0cff-0310-8789-dd5450dbe970
* Add missing prototypes; needed to make Win-32 compiler happyTheodore Tso1996-06-132-0/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8344 dc483132-0cff-0310-8789-dd5450dbe970
* Add #ifdef _WIN32 in places where we had #ifdef _MSDOSTheodore Tso1996-06-122-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8299 dc483132-0cff-0310-8789-dd5450dbe970
* cvsignore hackeryTom Yu1996-06-101-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8288 dc483132-0cff-0310-8789-dd5450dbe970
* Updated .Sanitize fileTheodore Tso1996-06-061-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8248 dc483132-0cff-0310-8789-dd5450dbe970
* Update .Sanitize files to reflect current file statusTheodore Tso1996-06-061-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8246 dc483132-0cff-0310-8789-dd5450dbe970
* Use KRB5_RUN_FLAGS in configure.in, and use appropriate run flags forSam Hartman1996-05-233-6/+21
| | | | | | | | | | each test so shared libraries are happy. Also, for tests that use weak or zero keys, make sure we link in enough object modules to allow us to overide parts of libcrypto even on systems with early binding in shared libs lik AIX. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8118 dc483132-0cff-0310-8789-dd5450dbe970
* Fix memory leak. Free tempbuf before returningTheodore Tso1996-05-182-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8045 dc483132-0cff-0310-8789-dd5450dbe970
* * des_int.h: the cs_entry routines in cbc_cksum.c are now staticRichard Basch1996-05-155-60/+36
| | | | | | | | | | | | * Makefile.in: removed cs_entry.c * cbc_cksum.c: caller is responsible for allocating cksum->contents and indicate the allocated amount in cksum->length. the cs_entry routines are now static and the cs_entry structure is now in this file to enforce proper use. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8023 dc483132-0cff-0310-8789-dd5450dbe970
* Replace des3-md5 with des3-shaRichard Basch1996-05-105-4/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7967 dc483132-0cff-0310-8789-dd5450dbe970
* Don't do more than the necessary encryptions for a single cblock lengthRichard Basch1996-05-071-4/+5
| | | | | | | random key. Only the larger cblocks need a second wrap-around cbc encrypt to prevent leaking a codebook. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7922 dc483132-0cff-0310-8789-dd5450dbe970
* Somehow I missed this file during my previous checkin... New 3des randomRichard Basch1996-05-071-15/+121
| | | | | | function support git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7920 dc483132-0cff-0310-8789-dd5450dbe970
* New DES random number generation. For regular DES, it is nearly equivalentRichard Basch1996-05-078-338/+261
| | | | | | | | | (an extra DES encryption now happens). For 3des, it is a substantially better setup (the original one was a placeholder); it may not be the final one, but at least it is not as weak as the previous version. (This checkin does not include the proposed API changes.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7911 dc483132-0cff-0310-8789-dd5450dbe970
* oops, ted already got itMark Eichin1996-04-101-2/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7783 dc483132-0cff-0310-8789-dd5450dbe970
* actually build afsstring2key.cMark Eichin1996-04-101-0/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7782 dc483132-0cff-0310-8789-dd5450dbe970
* Added afsstring2key.c to the list of files to be compiledTheodore Tso1996-04-102-2/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7781 dc483132-0cff-0310-8789-dd5450dbe970
* add afsstring2keyMark Eichin1996-04-093-1/+505
| | | | | | | hack des string2key to call it if salt.length is -1 initialize context in testsuite git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7768 dc483132-0cff-0310-8789-dd5450dbe970
* Took the list of sources and object files in FSRCS, FOBJS, D3OBJS, andTheodore Tso1996-03-312-19/+34
| | | | | | | | D3SRCS, and inlined them into the OBJS and SRCS list. This is necessary so that the files are correctly picked up for the Macintosh build. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7744 dc483132-0cff-0310-8789-dd5450dbe970
* Added support for ENCTYPE_DES3_CBC_RAW (gssapi)Richard Basch1996-03-295-4/+14
| | | | | | des_int.h: added support for CKSUMTYPE_RSA_MD5_DES3 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7735 dc483132-0cff-0310-8789-dd5450dbe970
* Fix Windows lint flames. (16bit vs. 32bit issues)Theodore Tso1996-03-213-8/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7687 dc483132-0cff-0310-8789-dd5450dbe970
* * new_rn_key.c (mit_des_generate_random_block): Add const keywrodEzra Peisach1996-03-203-2/+15
| | | | | | to cast for suncc warning. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7677 dc483132-0cff-0310-8789-dd5450dbe970
* t_random.c: New file which just tests the random number generatorTheodore Tso1996-02-234-2/+145
| | | | | | | new_rn_key.c (mit_des_set_random_generator_seed): Add fix so that we do something even if the input key is not a valid DES key. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7503 dc483132-0cff-0310-8789-dd5450dbe970
* Fix return type for mit_des3_string_to_key()Theodore Tso1996-01-112-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7297 dc483132-0cff-0310-8789-dd5450dbe970
* * t_verify.c: Added an n-fold testRichard Basch1995-12-141-0/+36
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7231 dc483132-0cff-0310-8789-dd5450dbe970
* * d3_str2ky.c: Updated to include some of the randomness throughoutRichard Basch1995-12-121-7/+3
| | | | | | | the entire key. The second 3-DES CBC encryption of the block should use an ivec of the last cipher block. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7208 dc483132-0cff-0310-8789-dd5450dbe970