]> git.ipfire.org Git - thirdparty/krb5.git/log
thirdparty/krb5.git
15 years agoAdd a dejagnu test pass for camellia-256 lhoward/camellia-ccm
Greg Hudson [Tue, 27 Jul 2010 16:09:45 +0000 (16:09 +0000)] 
Add a dejagnu test pass for camellia-256

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24216 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Mon, 31 May 2010 16:11:06 +0000 (16:11 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24115 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Mon, 24 May 2010 17:17:45 +0000 (17:17 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24099 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoGCM has a block limit of 2^32 - 2 rather than 2^32 - 1, as does CCM
Luke Howard [Mon, 24 May 2010 08:12:37 +0000 (08:12 +0000)] 
GCM has a block limit of 2^32 - 2 rather than 2^32 - 1, as does CCM

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24098 dc483132-0cff-0310-8789-dd5450dbe970

15 years agosome style cleanups
Luke Howard [Sun, 23 May 2010 23:23:07 +0000 (23:23 +0000)] 
some style cleanups

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24096 dc483132-0cff-0310-8789-dd5450dbe970

15 years agosome style cleanups
Luke Howard [Sun, 23 May 2010 23:22:29 +0000 (23:22 +0000)] 
some style cleanups

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24095 dc483132-0cff-0310-8789-dd5450dbe970

15 years agodon't zero out last block
Luke Howard [Sun, 23 May 2010 18:43:52 +0000 (18:43 +0000)] 
don't zero out last block

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24093 dc483132-0cff-0310-8789-dd5450dbe970

15 years agomove IOV block accessors into inline functions
Luke Howard [Sun, 23 May 2010 18:25:24 +0000 (18:25 +0000)] 
move IOV block accessors into inline functions

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24092 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoiov_next_block() would not work with CCM (well, it would work but only by
Luke Howard [Sun, 23 May 2010 18:17:30 +0000 (18:17 +0000)] 
iov_next_block() would not work with CCM (well, it would work but only by
fluke) because it does not respect the various flags in the IOV state for
ignoring the header, etc.

There was also a more serious bug in krb5int_c_iov_get_block_nocopy() where
it would return FALSE on last partial block, which could cause that block
not to be included.

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24091 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoremove unused #defines
Luke Howard [Sun, 23 May 2010 12:51:23 +0000 (12:51 +0000)] 
remove unused #defines

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24090 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoupdate windows identity manager for GCM
Luke Howard [Sun, 23 May 2010 10:30:24 +0000 (10:30 +0000)] 
update windows identity manager for GCM

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24089 dc483132-0cff-0310-8789-dd5450dbe970

15 years agosupport possible truncation of GMAC checksum
Luke Howard [Sat, 22 May 2010 19:19:37 +0000 (19:19 +0000)] 
support possible truncation of GMAC checksum

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24088 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoInitial implementation of GCM
Luke Howard [Sat, 22 May 2010 19:11:24 +0000 (19:11 +0000)] 
Initial implementation of GCM

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24087 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoMake CMAC KDF SP800-compliant by including zero Context
Luke Howard [Sat, 22 May 2010 10:58:47 +0000 (10:58 +0000)] 
Make CMAC KDF SP800-compliant by including zero Context

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24086 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCleanup
Luke Howard [Thu, 20 May 2010 13:16:55 +0000 (13:16 +0000)] 
Cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24071 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoUse counter+feedback mode for CMAC KDF
Luke Howard [Wed, 19 May 2010 22:18:34 +0000 (22:18 +0000)] 
Use counter+feedback mode for CMAC KDF

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24070 dc483132-0cff-0310-8789-dd5450dbe970

15 years ago[L]2 is length of derived key
Luke Howard [Wed, 19 May 2010 22:07:44 +0000 (22:07 +0000)] 
[L]2 is length of derived key

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24069 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoUse SP-800-108 KDF in counter mode with CMAC as CCM/GCM KDF
Luke Howard [Wed, 19 May 2010 22:04:37 +0000 (22:04 +0000)] 
Use SP-800-108 KDF in counter mode with CMAC as CCM/GCM KDF

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24068 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCTR format should be opaque to CTR implementation; caller should be
Luke Howard [Mon, 17 May 2010 23:53:46 +0000 (23:53 +0000)] 
CTR format should be opaque to CTR implementation; caller should be
responsible for avoiding overflow. This will allow the same CTR code
to work with GCM and CCM.

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24053 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoseparate CCM from CCM with derived keys
Luke Howard [Mon, 17 May 2010 12:56:58 +0000 (12:56 +0000)] 
separate CCM from CCM with derived keys

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24049 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoassign some numbers for GCM/GMAC
Luke Howard [Sun, 16 May 2010 13:12:52 +0000 (13:12 +0000)] 
assign some numbers for GCM/GMAC

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24048 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoMove validation of CTR mode cipher state up to CCM layer. This allows
Luke Howard [Sun, 16 May 2010 12:57:48 +0000 (12:57 +0000)] 
Move validation of CTR mode cipher state up to CCM layer. This allows
us to re-use the CTR implementation for other compositions such as
GCM, which have differently formatted counter blocks. This is similar
to the CTR implementation in OpenSSL, which requires the caller to
manage counter overflow. It also simplifies the code and specification
somewhat. The CTR initial cipher state is now 16 bytes of zeros; the
number of bits used for the counter is up to the composition.

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24047 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd some notes
Luke Howard [Sun, 16 May 2010 08:48:34 +0000 (08:48 +0000)] 
add some notes

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24046 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCleanup; assert in CTR mode implementations that there is always an
Luke Howard [Sun, 16 May 2010 08:44:44 +0000 (08:44 +0000)] 
Cleanup; assert in CTR mode implementations that there is always an
initialization vector, otherwise their use is unsafe

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24045 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoDK() must use ECB (here, implemented in terms of CBC-MAC) otherwise
Luke Howard [Sun, 16 May 2010 08:43:56 +0000 (08:43 +0000)] 
DK() must use ECB (here, implemented in terms of CBC-MAC) otherwise
computing other derived keys is trivial

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24044 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Fri, 14 May 2010 18:21:44 +0000 (18:21 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24038 dc483132-0cff-0310-8789-dd5450dbe970

15 years agowhen chaining, use a fresh nonce for each invocation
Luke Howard [Fri, 14 May 2010 17:15:37 +0000 (17:15 +0000)] 
when chaining, use a fresh nonce for each invocation

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24037 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Fri, 14 May 2010 16:03:35 +0000 (16:03 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24036 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Fri, 14 May 2010 15:49:57 +0000 (15:49 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24035 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Fri, 14 May 2010 15:45:55 +0000 (15:45 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24034 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Fri, 14 May 2010 15:43:01 +0000 (15:43 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24033 dc483132-0cff-0310-8789-dd5450dbe970

15 years agorestore some accidentally deleted checks
Luke Howard [Fri, 14 May 2010 15:38:18 +0000 (15:38 +0000)] 
restore some accidentally deleted checks

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24032 dc483132-0cff-0310-8789-dd5450dbe970

15 years agofurther salt new enctypes with enctype name
Luke Howard [Fri, 14 May 2010 15:22:43 +0000 (15:22 +0000)] 
further salt new enctypes with enctype name

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24031 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoIf cipher state is explicitly initialised, be sure to randomise nonce on
Luke Howard [Fri, 14 May 2010 14:46:08 +0000 (14:46 +0000)] 
If cipher state is explicitly initialised, be sure to randomise nonce on
first use

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24030 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Fri, 14 May 2010 08:31:04 +0000 (08:31 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24029 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Fri, 14 May 2010 08:25:22 +0000 (08:25 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24028 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Fri, 14 May 2010 08:21:41 +0000 (08:21 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24027 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Fri, 14 May 2010 00:19:58 +0000 (00:19 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24026 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Thu, 13 May 2010 23:15:09 +0000 (23:15 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24025 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCCM PRF is now CMAC (similar to RFC 4615)
Luke Howard [Thu, 13 May 2010 23:12:26 +0000 (23:12 +0000)] 
CCM PRF is now CMAC (similar to RFC 4615)

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24024 dc483132-0cff-0310-8789-dd5450dbe970

15 years agorevert Camellia CCM enctypes to private assignments
Luke Howard [Thu, 13 May 2010 22:35:40 +0000 (22:35 +0000)] 
revert Camellia CCM enctypes to private assignments

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24023 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoPull up r24021 (fix negative enctypes in ccaches) to Luke's
Greg Hudson [Thu, 13 May 2010 19:02:48 +0000 (19:02 +0000)] 
Pull up r24021 (fix negative enctypes in ccaches) to Luke's
camellia-ccm branch for testing purposes.

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24022 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoassign some numbers for Camellia CCM for now
Luke Howard [Thu, 13 May 2010 17:48:54 +0000 (17:48 +0000)] 
assign some numbers for Camellia CCM for now

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24019 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoAdd CCM PRF: this is just CBC-MAC of input with derived key
Luke Howard [Thu, 13 May 2010 17:38:31 +0000 (17:38 +0000)] 
Add CCM PRF: this is just CBC-MAC of input with derived key

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24018 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoAt Luke's request, merge r24016 (fix negative enctype values in
Greg Hudson [Thu, 13 May 2010 17:35:40 +0000 (17:35 +0000)] 
At Luke's request, merge r24016 (fix negative enctype values in
keytabs) from trunk onto his camellia-ccm branch to facilitate
testing.

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24017 dc483132-0cff-0310-8789-dd5450dbe970

15 years agokrb5int_camellia_decrypt_ctr no longer required
Luke Howard [Thu, 13 May 2010 16:22:32 +0000 (16:22 +0000)] 
krb5int_camellia_decrypt_ctr no longer required

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24014 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Wed, 12 May 2010 17:06:38 +0000 (17:06 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24011 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoremove some CCM-specific stuff from CTR implementation
Luke Howard [Wed, 12 May 2010 16:49:18 +0000 (16:49 +0000)] 
remove some CCM-specific stuff from CTR implementation

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24010 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Wed, 12 May 2010 16:40:59 +0000 (16:40 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24009 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoDon't set pad_to_boundary flag for CMAC checksums; the SIGN_ONLY
Luke Howard [Wed, 12 May 2010 12:50:38 +0000 (12:50 +0000)] 
Don't set pad_to_boundary flag for CMAC checksums; the SIGN_ONLY
and DATA components are just being signed, there's no padding
required.

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24008 dc483132-0cff-0310-8789-dd5450dbe970

15 years agouse make_data()
Luke Howard [Wed, 12 May 2010 12:40:36 +0000 (12:40 +0000)] 
use make_data()

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24007 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd an assert
Luke Howard [Tue, 11 May 2010 10:07:59 +0000 (10:07 +0000)] 
add an assert

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24006 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Tue, 11 May 2010 08:33:44 +0000 (08:33 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24005 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd better error checking
Luke Howard [Mon, 10 May 2010 22:55:42 +0000 (22:55 +0000)] 
add better error checking

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24004 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoclarify CCM checksum as MAC rather than CMAC
Luke Howard [Mon, 10 May 2010 17:25:05 +0000 (17:25 +0000)] 
clarify CCM checksum as MAC rather than CMAC

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24001 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Mon, 10 May 2010 13:23:12 +0000 (13:23 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24000 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoImplement CMAC checksum types for AES and Camellia
Luke Howard [Mon, 10 May 2010 13:19:40 +0000 (13:19 +0000)] 
Implement CMAC checksum types for AES and Camellia

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23999 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoremove unused code
Luke Howard [Sun, 9 May 2010 19:51:25 +0000 (19:51 +0000)] 
remove unused code

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23998 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoremove new CBC enctypes
Luke Howard [Sun, 9 May 2010 18:26:35 +0000 (18:26 +0000)] 
remove new CBC enctypes

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23997 dc483132-0cff-0310-8789-dd5450dbe970

15 years agouse SHA-1 rather than CBC-MAC for non-CCM signatures
Luke Howard [Sun, 9 May 2010 18:24:38 +0000 (18:24 +0000)] 
use SHA-1 rather than CBC-MAC for non-CCM signatures

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23996 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd support for derived key CBC checksums
Luke Howard [Sun, 9 May 2010 18:18:45 +0000 (18:18 +0000)] 
add support for derived key CBC checksums

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23995 dc483132-0cff-0310-8789-dd5450dbe970

15 years agofix broken CBC checksums for AES/Camellia
Luke Howard [Sun, 9 May 2010 18:00:26 +0000 (18:00 +0000)] 
fix broken CBC checksums for AES/Camellia

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23994 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Sun, 9 May 2010 17:29:33 +0000 (17:29 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23992 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoadd CCM OpenSSL backend
Luke Howard [Sun, 9 May 2010 13:50:14 +0000 (13:50 +0000)] 
add CCM OpenSSL backend

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23991 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoupdate Camellia for OpenSSL 1.0.0
Luke Howard [Sun, 9 May 2010 12:59:43 +0000 (12:59 +0000)] 
update Camellia for OpenSSL 1.0.0

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23990 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Sun, 9 May 2010 12:36:45 +0000 (12:36 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23989 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix merge error: CBC checksum must be encrypted
Luke Howard [Sun, 9 May 2010 10:46:50 +0000 (10:46 +0000)] 
Fix merge error: CBC checksum must be encrypted

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23988 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoplug in camellia-ccm
Luke Howard [Sun, 9 May 2010 10:16:59 +0000 (10:16 +0000)] 
plug in camellia-ccm

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23987 dc483132-0cff-0310-8789-dd5450dbe970

15 years agocleanup
Luke Howard [Sun, 9 May 2010 10:04:25 +0000 (10:04 +0000)] 
cleanup

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23986 dc483132-0cff-0310-8789-dd5450dbe970

15 years agomerge camellia-cts patch
Luke Howard [Sun, 9 May 2010 10:02:05 +0000 (10:02 +0000)] 
merge camellia-cts patch

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23985 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoPort old aes-ccm implementation to current crypto SPI
Luke Howard [Sun, 9 May 2010 09:22:27 +0000 (09:22 +0000)] 
Port old aes-ccm implementation to current crypto SPI

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23984 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCreating a branch for modern crypto CCM implementation
Luke Howard [Sun, 9 May 2010 08:04:34 +0000 (08:04 +0000)] 
Creating a branch for modern crypto CCM implementation

git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@23983 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoGeneral code consistency pass in kdb_db2.c.
Greg Hudson [Wed, 5 May 2010 17:11:39 +0000 (17:11 +0000)] 
General code consistency pass in kdb_db2.c.
Removes some pointless null checks.
Frees the DB context when a DB is finalized.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23973 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoAdjust for removal of krb5_ldap_set_option in r23965
Tom Yu [Tue, 4 May 2010 22:00:41 +0000 (22:00 +0000)] 
Adjust for removal of krb5_ldap_set_option in r23965

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23972 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoGet rid of some kdb5_util load code which is no longer useful after
Greg Hudson [Tue, 4 May 2010 19:01:16 +0000 (19:01 +0000)] 
Get rid of some kdb5_util load code which is no longer useful after
the introduction of the DAL.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23971 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoRemove some unused format string definitions from kdb5_util's dump.c
Greg Hudson [Tue, 4 May 2010 17:08:39 +0000 (17:08 +0000)] 
Remove some unused format string definitions from kdb5_util's dump.c

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23970 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoRemove some unused fields from kadm5_config_params. Bump the client
Greg Hudson [Tue, 4 May 2010 16:54:00 +0000 (16:54 +0000)] 
Remove some unused fields from kadm5_config_params.  Bump the client
and server sonames.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23969 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoEliminate the unused realm_dbname field from krb5_realm_params
Greg Hudson [Tue, 4 May 2010 15:58:59 +0000 (15:58 +0000)] 
Eliminate the unused realm_dbname field from krb5_realm_params

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23968 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoRemove a stray comment from r23966
Greg Hudson [Tue, 4 May 2010 05:49:39 +0000 (05:49 +0000)] 
Remove a stray comment from r23966

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23967 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoRefactor the kdb_db2.c code which processes db_args and profile
Greg Hudson [Tue, 4 May 2010 05:44:07 +0000 (05:44 +0000)] 
Refactor the kdb_db2.c code which processes db_args and profile
variables to configure a DB context, to avoid repeating that code
three times in open/create/destroy.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23966 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoRemove krb5_db_set_option and the associated DAL entry. It was not
Greg Hudson [Tue, 4 May 2010 04:12:24 +0000 (04:12 +0000)] 
Remove krb5_db_set_option and the associated DAL entry.  It was not
used.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23965 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoCorrect the DAL documentation for db_create
Greg Hudson [Mon, 3 May 2010 23:44:30 +0000 (23:44 +0000)] 
Correct the DAL documentation for db_create

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23964 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoEliminate some uses of variables as format strings. Based on a patch
Greg Hudson [Mon, 3 May 2010 19:42:29 +0000 (19:42 +0000)] 
Eliminate some uses of variables as format strings.  Based on a patch
from Guillaume Rousse <Guillaume.Rousse@inria.fr>.

ticket: 6714

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23963 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoEliminate the use of variables for format strings in kdb5_util. Many
Greg Hudson [Mon, 3 May 2010 19:02:16 +0000 (19:02 +0000)] 
Eliminate the use of variables for format strings in kdb5_util.  Many
were unused, and localization will probably be done through _()
macros, not collecting all the strings together.  Elminates a number
of format-security static analysis defects.

ticket: 6714
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23962 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix some bugs in the IAKERB code discovered by Coverity. Also trim
Greg Hudson [Sat, 1 May 2010 17:53:04 +0000 (17:53 +0000)] 
Fix some bugs in the IAKERB code discovered by Coverity.  Also trim
down iakerb_initiator_step() a little using krb5_data constructors
and avoiding vertical function arguments.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23961 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoAdd IAKERB mechanism and gss_acquire_cred_with_password
Greg Hudson [Fri, 30 Apr 2010 21:22:48 +0000 (21:22 +0000)] 
Add IAKERB mechanism and gss_acquire_cred_with_password

Merge branches/iakerb to trunk.  Includes the following:

* New IAKERB mechanism.
* New gss_acquire_cred_with_password mechglue function.
* ASN.1 encoders and decoders for IAKERB structures (with tests).
* New shortcuts in gss-sample client and server.
* Tests to exercise SPNEGO and IAKERB using gss-sample application.

ticket: 6712

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23960 dc483132-0cff-0310-8789-dd5450dbe970

15 years agomemory leak in process_tgs_req in r23724
Tom Yu [Fri, 30 Apr 2010 21:10:55 +0000 (21:10 +0000)] 
memory leak in process_tgs_req in r23724

Fix a KDC memory leak that was introduced by r23724 that could leak
the decoded request.

ticket: 6711
tags: pullup
target_version: 1.8.2

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23959 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix a backwards check in get_cached_tgt() in the TGS code
Greg Hudson [Tue, 27 Apr 2010 09:02:48 +0000 (09:02 +0000)] 
Fix a backwards check in get_cached_tgt() in the TGS code

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23945 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoSquash some warnings in the old crypto API glue. Use make_data()
Greg Hudson [Mon, 26 Apr 2010 16:54:38 +0000 (16:54 +0000)] 
Squash some warnings in the old crypto API glue.  Use make_data()
where appropriate so that magic fields get initialized.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23942 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoAdd a Python test script to exercise the GSS sample app
Greg Hudson [Sat, 24 Apr 2010 19:33:33 +0000 (19:33 +0000)] 
Add a Python test script to exercise the GSS sample app

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23937 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoAdd a sentinel line to sim_server after the socket is ready, and use
Greg Hudson [Sat, 24 Apr 2010 19:24:36 +0000 (19:24 +0000)] 
Add a sentinel line to sim_server after the socket is ready, and use
it in simple.exp in the dejagnu test suite instead of sleeping.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23936 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoEliminate the use of tail -f in the dejagnu test suite. Instead, use
Greg Hudson [Sat, 24 Apr 2010 19:20:11 +0000 (19:20 +0000)] 
Eliminate the use of tail -f in the dejagnu test suite.  Instead, use
the sentinel lines printed by krb5kdc and kadmind to detect when the
listening sockets are ready.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23935 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoAdd a sentinel to the sample gss-server after the socket is ready, and
Greg Hudson [Sat, 24 Apr 2010 19:12:34 +0000 (19:12 +0000)] 
Add a sentinel to the sample gss-server after the socket is ready, and
use it in gssapi.exp in the dejagnu test suite instead of sleeping.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23934 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoSimplify how k5test scripts get run by importing runenv by pathname
Greg Hudson [Sat, 24 Apr 2010 18:53:25 +0000 (18:53 +0000)] 
Simplify how k5test scripts get run by importing runenv by pathname
(using the imp module) instead of by module name.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23933 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoRun Python tests as individual rule commands (friendlier to make -k)
Greg Hudson [Sat, 24 Apr 2010 17:33:04 +0000 (17:33 +0000)] 
Run Python tests as individual rule commands (friendlier to make -k)
instead of in a loop.  Build runenv.py as part of make fake-install;
it's harmless if Python is unavailable.  Import runenv later in
k5test so that we get a beter error message if make fake-install
hasn't been run.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23932 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFix the actual python command to match the displayed one in the
Greg Hudson [Sat, 24 Apr 2010 16:39:49 +0000 (16:39 +0000)] 
Fix the actual python command to match the displayed one in the
check-pytests-yes rule in r23913.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23931 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoAdapted patch from Arlene Berry to handle dlerror() returning a null
Tom Yu [Fri, 23 Apr 2010 01:30:48 +0000 (01:30 +0000)] 
Adapted patch from Arlene Berry to handle dlerror() returning a null
pointer.

ticket: 6697
target_version: 1.8.2
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23929 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoAdapted patch from Jason Rogers. It wasn't complete, so this commit
Tom Yu [Fri, 23 Apr 2010 01:10:20 +0000 (01:10 +0000)] 
Adapted patch from Jason Rogers.  It wasn't complete, so this commit
fixes the other instances of the 64-bit problem.

Also fix krb5_deltat_to_str(), which would previously always return an
empty string.

ticket: 6698
target_version: 1.8.2
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23928 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoFrom Luke: fix the post-canonicalization cache check logic in
Greg Hudson [Thu, 22 Apr 2010 23:29:40 +0000 (23:29 +0000)] 
From Luke: fix the post-canonicalization cache check logic in
krb5_get_credentials_for_user().

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23927 dc483132-0cff-0310-8789-dd5450dbe970

15 years agoIn kg_new_connection(), make sure k_cred is freed in all failure
Greg Hudson [Thu, 22 Apr 2010 20:07:08 +0000 (20:07 +0000)] 
In kg_new_connection(), make sure k_cred is freed in all failure
cases.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23926 dc483132-0cff-0310-8789-dd5450dbe970