summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/des/des_int.h
Commit message (Collapse)AuthorAgeFilesLines
* Crypto modularity proj: Separate files under crypto directory based on their ↵Zhanna Tsitkov2009-08-031-382/+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
* Implement DES and 3DES PRF. Patch fromKAMADA Ken'ichiSam Hartman2009-04-301-1/+5
| | | | | | | | | | | | | Currently the DES and 3DES PRF output 16-byte results. This is consistent with RFC 3961, but we need to confirm it is consistent with Heimdal and WG decisions. See IETF 74 minutes for some discussion of the concern as it applies to AES and thus possibly all simplified profile enctypes. ticket: 5587 Tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22298 dc483132-0cff-0310-8789-dd5450dbe970
* Merge mskrb-integ onto trunkSam Hartman2009-01-031-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | The mskrb-integ branch includes support for the following projects: Projects/Aliases * Projects/PAC and principal APIs * Projects/AEAD encryption API * Projects/GSSAPI DCE * Projects/RFC 3244 In addition, it includes support for enctype negotiation, and a variety of GSS-API extensions. In the KDC it includes support for protocol transition, constrained delegation and a new authorization data interface. The old authorization data interface is also supported. This commit merges the mskrb-integ branch on to the trunk. Additional review and testing is required. Merge commit 'mskrb-integ' into trunk ticket: new status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21690 dc483132-0cff-0310-8789-dd5450dbe970
* Remove krb524, lib/des425, lib/krb4, and include/kerberosIV.Greg Hudson2008-12-181-3/+50
| | | | | | | | | | Remove krb4 build system references and conditionals. Move des425 header stuff referenced by des_int.h into des_int.h. Remove krb4 test cases. ticket: 6303 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21544 dc483132-0cff-0310-8789-dd5450dbe970
* Crypto IOV API per Projects/AEAD encryption APISam Hartman2008-12-021-0/+15
| | | | | | | | | | | | | | Merge in the mskrb-crypto-iov branch at r21259 in order to move an implementation of http://k5wiki.kerberos.org/wiki/Projects/AEAD_encryption_API onto the trunk. This branch contains a subset of the commits on the mskrb-integ branch that implement the krb5 library part of the crypto IOV API. ticket: new Status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21263 dc483132-0cff-0310-8789-dd5450dbe970
* Replace the array of 8 mit_des_cblock object 'mit_des_zeroblock' definedKen Raeburn2003-12-201-0/+3
| | | | | | | locally in multiple files with one defined in f_cbc.c; make it a single element rather than an array. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15945 dc483132-0cff-0310-8789-dd5450dbe970
* Separate the DES encrypt and decrypt operations into separate functions,Ken Raeburn2003-07-171-0/+40
| | | | | | | | | | | | | | | | since they have almost no code in common. * f_cbc.c (krb5int_des_cbc_encrypt, krb5int_des_cbc_decrypt): New functions broken out from mit_des_cbc_encrypt. (mit_des_cbc_encrypt): Call them. * d3_cbc.c (krb5int_des3_cbc_encrypt, krb5int_des3_cbc_decrypt): New functions broken out from mit_des3_cbc_encrypt. (mit_des3_cbc_encrypt): Call them. * des_int.h (krb5int_des_cbc_encrypt, krb5int_des_cbc_decrypt, krb5int_des3_cbc_encrypt, krb5int_des3_cbc_decrypt): Declare. (mit_des_cbc_encrypt, mit_des3_cbc_encrypt): New macros. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15692 dc483132-0cff-0310-8789-dd5450dbe970
* * des_int.h: Added prototype for mit_afs_crypt which is used by the ↵Alexandra Ellwood2003-03-061-0/+2
| | | | | | deprecated KfM des_crypt function git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15248 dc483132-0cff-0310-8789-dd5450dbe970
* Delete some unused declarations from old-crypto APIKen Raeburn2003-03-051-8/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15225 dc483132-0cff-0310-8789-dd5450dbe970
* Fix DES_INT32 definitionTom Yu2002-09-271-37/+6
| | | | | | | | | | | | Intial merge of KfM des library API. Update krb.h to use offsets from krb_err.et constants as error codes. Fix up definitions of KRB4_32, KRB_INT32, KRB_UINT32. ticket: 1189 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14904 dc483132-0cff-0310-8789-dd5450dbe970
* * des_int.h: use "" includes for k5-int.hTom Yu2002-06-081-1/+1
| | | | | | [pullup from 1-2-2-branch] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14483 dc483132-0cff-0310-8789-dd5450dbe970
* Danilo also says we can get rid of _MSDOS (Win16) tests, and explicit ↵Ken Raeburn2001-10-061-31/+31
| | | | | | FAR/NEAR specs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13786 dc483132-0cff-0310-8789-dd5450dbe970
* * des_int.h (mit_des_cbc_encrypt, mit_des3_ecb_encrypt,Ezra Peisach2001-05-311-3/+3
| | | | | | mit_des3_cbc_encrypt): Don't use "encrypt" as argument name. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13250 dc483132-0cff-0310-8789-dd5450dbe970
* more cleanup - add const, reduce castingKen Raeburn2001-04-101-7/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13169 dc483132-0cff-0310-8789-dd5450dbe970
* use const for some inputs (when practical) without changing apiKen Raeburn2001-04-101-7/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13164 dc483132-0cff-0310-8789-dd5450dbe970
* fix pathname in commentKen Raeburn2001-04-101-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13158 dc483132-0cff-0310-8789-dd5450dbe970
* * des_int.h: Don't use PROTOTYPE macro.Ken Raeburn2001-04-101-67/+72
| | | | | | | | | | (des_cblock, des_key_schedule): Duplicate definitions here and in kerberosIV/des.h, using macro KRB5INT_DES_TYPES_DEFINED to avoid duplication. (mit_des_cblock, mit_des_key_schedule): Define in terms of the other types for now. (PROTOTYPE): Don't define. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13156 dc483132-0cff-0310-8789-dd5450dbe970
* * des_int.h: Change prototypes for mit_des_cbc_encrypt(),Ezra Peisach2000-10-171-3/+4
| | | | | | | | | | | | | | | | | | | | 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
* copyright notice updates from 1.1 branchKen Raeburn1999-09-241-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11853 dc483132-0cff-0310-8789-dd5450dbe970
* pull up 3des implementation from the marc-3des branchMarc Horowitz1998-10-301-2/+27
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11001 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-271-9/+8
| | | | | | | | | | | 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
* * des_int.h: Use better logic to find an appropriate type forTom Yu1997-10-141-1/+20
| | | | | | | | | | | 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
* Add missing prototypes; needed to make Win-32 compiler happyTheodore Tso1996-06-131-0/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8344 dc483132-0cff-0310-8789-dd5450dbe970
* * des_int.h: the cs_entry routines in cbc_cksum.c are now staticRichard Basch1996-05-151-9/+0
| | | | | | | | | | | | * 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-101-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7967 dc483132-0cff-0310-8789-dd5450dbe970
* New DES random number generation. For regular DES, it is nearly equivalentRichard Basch1996-05-071-23/+17
| | | | | | | | | (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
* Added support for ENCTYPE_DES3_CBC_RAW (gssapi)Richard Basch1996-03-291-1/+2
| | | | | | 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 return type for mit_des3_string_to_key()Theodore Tso1996-01-111-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7297 dc483132-0cff-0310-8789-dd5450dbe970
* f_ecb.c, des_int.h (mit_des_ecb_encrypt): Add const declaration to inputEzra Peisach1995-11-281-1/+1
| | | | | | cblock. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7137 dc483132-0cff-0310-8789-dd5450dbe970
* The output block of n-fold should not be a "const"Richard Basch1995-11-281-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7136 dc483132-0cff-0310-8789-dd5450dbe970
* Added Triple-DES function prototypes and structuresRichard Basch1995-11-281-1/+56
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7131 dc483132-0cff-0310-8789-dd5450dbe970
* * string2key.c : Remove krb5_enctype from krb5_string_to_key() args.Chris Provenzano1995-11-091-1/+1
| | | | | | | * string2key.c, des_int.h : Remove krb5_enctype from mit_des_string_to_key() args. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7084 dc483132-0cff-0310-8789-dd5450dbe970
* Define PROTOTYPE if it is not defined elsewhereTheodore Tso1995-09-231-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6838 dc483132-0cff-0310-8789-dd5450dbe970
* Reintegrate the keytype -> enctype changesEzra Peisach1995-09-121-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6755 dc483132-0cff-0310-8789-dd5450dbe970
* Mac Beta 1 submissionKeith Vetter1995-09-111-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6749 dc483132-0cff-0310-8789-dd5450dbe970
* * des_int.h, destest.c, init_rkey.c, random_key.c, string2key.cChris Provenzano1995-09-061-1/+1
| | | | | | * verify.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6712 dc483132-0cff-0310-8789-dd5450dbe970
* * f_cksum.c: Change code to match prototypesEzra Peisach1995-08-261-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * f_cbc.c, f_ecb, f_parity, f_pcbc: Change des_cblock to mit_des_cblock and des_key_schedule to mit_des_key_schedule. Also include des_int.h. * destest.c: Change des_cblock to mit_des_cblock and add local prototypes. * cs_entry.c: Remove prototypes for mit_des_cbc_cksum and mit_des_cbc_cksum. Now in des_int.h. * cbc_cksum.c, string2key.c: Remove casts in call to mit_des_cbc_cksum * des_int.h: Add prototype for mit_des_cbc_verf_cksum. Change return code for mit_des_cbc_cksum to match source. * des.h: Remove unused structures and defines. Short end - fix des_int.h to reflect reality (i.e. source code) and then fix rest of code to agree. Also removed the use of old structures such as des_cblock and des_key_schedule. Instead the the newer mit_des_cblock and mit_des_schedule are used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6598 dc483132-0cff-0310-8789-dd5450dbe970
* Inline the old contents of mit-des.hPaul Park1995-07-271-2/+50
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6341 dc483132-0cff-0310-8789-dd5450dbe970
* Windows global stuff:Keith Vetter1995-04-141-39/+40
| | | | | | | | | o removed INTERFACE from non-api functions o add FAR to pointers visible to the world o made the tests for __STDC__ also check for _WINDOWS o creates GSSAPI.DLL & GSSAPI.LIB as per spec. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5354 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (LDFLAGS): Remove, conflicts with pre.in.John Gilmore1995-03-171-1/+1
| | | | | | | | | | | (clean): Insert FIXME. (verify$(EXEEXT), destest$(EXEEXT)): Make them work on Mac. (check-mac): Add, identical to Unix. (clean): Use $(EXEEXT). * des_int.h (mit_des_cbc_cksum): Fix prototype from void to long, to match the actual function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5143 dc483132-0cff-0310-8789-dd5450dbe970
* Avoid <krb5/...> includesJohn Gilmore1995-02-281-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5006 dc483132-0cff-0310-8789-dd5450dbe970
* Made the CRYPTO directories work on the PC by adding INTERFACE to all theKeith Vetter1995-02-211-21/+28
| | | | | | functions and prototypes, and updating the Makefile.in. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4956 dc483132-0cff-0310-8789-dd5450dbe970
* Remove unused cruft from des_int.hTheodore Tso1995-02-031-73/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4901 dc483132-0cff-0310-8789-dd5450dbe970
* * Removed all narrow types and references to wide.h and narrow.hChris Provenzano1995-01-251-7/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4837 dc483132-0cff-0310-8789-dd5450dbe970
* Change internal calling signature to pass in the encryption block, soTheodore Tso1994-11-081-3/+3
| | | | | | | that the encryption type in the keyblock structure can be properly initialized. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4649 dc483132-0cff-0310-8789-dd5450dbe970
* Remove declarations of the cryptosystem specific structures toTheodore Tso1994-10-141-19/+6
| | | | | | | raw-des.c and des-crc.c in the parent directory. They're strictly speaking not DES specific. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4506 dc483132-0cff-0310-8789-dd5450dbe970
* stamp out rcs keywordsMark Eichin1994-08-181-3/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4191 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed crypto_system table entries; added raw DES cryptosystemTheodore Tso1994-01-131-6/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3316 dc483132-0cff-0310-8789-dd5450dbe970
* Change export warning notice from "is assumed to require an export license"Theodore Tso1993-09-011-2/+2
| | | | | | to "may require..." git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2638 dc483132-0cff-0310-8789-dd5450dbe970
* Update copyright noticeJohn Kohl1991-06-061-2/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2156 dc483132-0cff-0310-8789-dd5450dbe970