svn rev #22816: branches/enc-perf/src/ lib/crypto/ lib/crypto/builtin/ lib/crypto/builtin/arcfour/ ...

ghudson@MIT.EDU ghudson at MIT.EDU
Thu Oct 1 10:50:04 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22816
Commit By: ghudson
Log Message:
Merge trunk changes from r22791 to r22815 to enc-perf branch.

bigredbutton: whitespace



Changed Files:
U   branches/enc-perf/src/Makefile.in
U   branches/enc-perf/src/configure.in
U   branches/enc-perf/src/lib/crypto/Makefile.in
U   branches/enc-perf/src/lib/crypto/builtin/Makefile.in
U   branches/enc-perf/src/lib/crypto/builtin/arcfour/Makefile.in
U   branches/enc-perf/src/lib/crypto/builtin/deps
A   branches/enc-perf/src/lib/crypto/builtin/hash_provider/
A   branches/enc-perf/src/lib/crypto/builtin/yhash.h
U   branches/enc-perf/src/lib/crypto/crypto_tests/Makefile.in
U   branches/enc-perf/src/lib/crypto/krb/Makefile.in
U   branches/enc-perf/src/lib/crypto/krb/deps
D   branches/enc-perf/src/lib/crypto/krb/hash_provider/
U   branches/enc-perf/src/lib/crypto/krb/keyhash_provider/Makefile.in
U   branches/enc-perf/src/lib/crypto/krb/keyhash_provider/deps
U   branches/enc-perf/src/lib/crypto/krb/prf/Makefile.in
U   branches/enc-perf/src/lib/crypto/krb/prf/deps
U   branches/enc-perf/src/lib/crypto/krb/yarrow/Makefile.in
U   branches/enc-perf/src/lib/crypto/krb/yarrow/deps
U   branches/enc-perf/src/lib/crypto/krb/yarrow/yarrow.c
U   branches/enc-perf/src/lib/crypto/krb/yarrow/yarrow.h
D   branches/enc-perf/src/lib/crypto/krb/yarrow/yhash.h
A   branches/enc-perf/src/lib/crypto/openssl/aes/
A   branches/enc-perf/src/lib/crypto/openssl/arcfour/
A   branches/enc-perf/src/lib/crypto/openssl/des/
A   branches/enc-perf/src/lib/crypto/openssl/hash_provider/
U   branches/enc-perf/src/lib/crypto/openssl/hmac.c
U   branches/enc-perf/src/lib/crypto/openssl/sha1/shs.c
U   branches/enc-perf/src/lib/crypto/openssl/sha1/shs.h
A   branches/enc-perf/src/lib/crypto/openssl/yhash.h
Modified: branches/enc-perf/src/Makefile.in
===================================================================
--- branches/enc-perf/src/Makefile.in	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/Makefile.in	2009-10-01 14:50:04 UTC (rev 22816)
@@ -196,7 +196,7 @@
 	lib\Makefile lib\crypto\Makefile \
 	lib\crypto\krb\crc32\Makefile lib\crypto\builtin\des\Makefile \
 	lib\crypto\krb\dk\Makefile lib\crypto\builtin\enc_provider\Makefile \
-	lib\crypto\krb\hash_provider\Makefile \
+	lib\crypto\builtin\hash_provider\Makefile \
 	lib\crypto\krb\keyhash_provider\Makefile \
 	lib\crypto\krb\prf\Makefile lib\crypto\krb\rand2key\Makefile \
 	lib\crypto\krb\raw\Makefile lib\crypto\krb\old\Makefile \
@@ -271,7 +271,7 @@
 ##DOS##	$(WCONFIG) config < $@.in > $@
 ##DOS##lib\crypto\builtin\enc_provider\Makefile: lib\crypto\builtin\enc_provider\Makefile.in $(MKFDEP)
 ##DOS##	$(WCONFIG) config < $@.in > $@
-##DOS##lib\crypto\krb\hash_provider\Makefile: lib\crypto\krb\hash_provider\Makefile.in $(MKFDEP)
+##DOS##lib\crypto\builtin\hash_provider\Makefile: lib\crypto\builtin\hash_provider\Makefile.in $(MKFDEP)
 ##DOS##	$(WCONFIG) config < $@.in > $@
 ##DOS##lib\crypto\krb\keyhash_provider\Makefile: lib\crypto\krb\keyhash_provider\Makefile.in $(MKFDEP)
 ##DOS##	$(WCONFIG) config < $@.in > $@
@@ -396,7 +396,7 @@
 	config/* include/* include/kerberosIV/* \
 	include/krb5/* include/krb5/stock/* include/sys/* lib/* \
 	lib/crypto/* lib/crypto/krb/crc32/* lib/crypto/builtin/des/* lib/crypto/krb/dk/* \
-	lib/crypto/builtin/enc_provider/* lib/crypto/krb/hash_provider/* \
+	lib/crypto/builtin/enc_provider/* lib/crypto/builtin/hash_provider/* \
 	lib/crypto/krb/keyhash_provider/* \
 	lib/crypto/krb/prf/* lib/crypto/krb/rand2key/* \
 	lib/crypto/krb/old/* lib/crypto/krb/raw/* \

Modified: branches/enc-perf/src/configure.in
===================================================================
--- branches/enc-perf/src/configure.in	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/configure.in	2009-10-01 14:50:04 UTC (rev 22816)
@@ -1061,7 +1061,7 @@
 
 	lib/crypto lib/crypto/krb lib/crypto/krb/crc32 lib/crypto/builtin/des
 	lib/crypto/krb/dk lib/crypto/builtin/enc_provider
-	lib/crypto/krb/hash_provider lib/crypto/krb/keyhash_provider
+	lib/crypto/builtin/hash_provider lib/crypto/krb/keyhash_provider
 	lib/crypto/krb/prf lib/crypto/krb/rand2key
 	lib/crypto/builtin lib/crypto/builtin/md4 lib/crypto/builtin/md5
 	lib/crypto/krb/old lib/crypto/krb/raw lib/crypto/builtin/sha1

Modified: branches/enc-perf/src/lib/crypto/Makefile.in
===================================================================
--- branches/enc-perf/src/lib/crypto/Makefile.in	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/Makefile.in	2009-10-01 14:50:04 UTC (rev 22816)
@@ -21,7 +21,7 @@
 RELDIR=crypto
 
 STOBJLISTS=krb/crc32/OBJS.ST krb/dk/OBJS.ST builtin/enc_provider/OBJS.ST	\
-	krb/hash_provider/OBJS.ST krb/keyhash_provider/OBJS.ST  		\
+	builtin/hash_provider/OBJS.ST krb/keyhash_provider/OBJS.ST  		\
 	krb/prf/OBJS.ST krb/rand2key/OBJS.ST 		 			\
 	krb/old/OBJS.ST krb/raw/OBJS.ST krb/yarrow/OBJS.ST 			\
 	builtin/md4/OBJS.ST builtin/md5/OBJS.ST builtin/sha1/OBJS.ST 		\
@@ -29,7 +29,7 @@
 	krb/OBJS.ST  builtin/OBJS.ST
 
 SUBDIROBJLISTS=krb/crc32/OBJS.ST krb/dk/OBJS.ST builtin/enc_provider/OBJS.ST 	\
-	krb/hash_provider/OBJS.ST krb/keyhash_provider/OBJS.ST 			\
+	builtin/hash_provider/OBJS.ST krb/keyhash_provider/OBJS.ST 		\
 	krb/prf/OBJS.ST krb/rand2key/OBJS.ST 		 			\
 	krb/old/OBJS.ST krb/raw/OBJS.ST  krb/yarrow/OBJS.ST 			\
 	builtin/md4/OBJS.ST builtin/md5/OBJS.ST	builtin/sha1/OBJS.ST 		\

Modified: branches/enc-perf/src/lib/crypto/builtin/Makefile.in
===================================================================
--- branches/enc-perf/src/lib/crypto/builtin/Makefile.in	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/builtin/Makefile.in	2009-10-01 14:50:04 UTC (rev 22816)
@@ -2,7 +2,7 @@
 myfulldir=lib/crypto/builtin
 mydir=lib/crypto/builtin
 BUILDTOP=$(REL)..$(S)..$(S)..
-SUBDIRS=des arcfour aes	 md4 md5  sha1 enc_provider
+SUBDIRS=des arcfour aes	 md4 md5  sha1 enc_provider hash_provider
 LOCALINCLUDES = -I$(srcdir)/../krb 			\
 		-I$(srcdir)/../krb/hash_provider 	\
 		-I$(srcdir)/../@CRYPTO_IMPL@/des 	\
@@ -11,7 +11,8 @@
 		-I$(srcdir)/../@CRYPTO_IMPL@/sha1 	\
 		-I$(srcdir)/../@CRYPTO_IMPL@/md4 	\
 		-I$(srcdir)/../@CRYPTO_IMPL@/md5	\
-		-I$(srcdir)/../@CRYPTO_IMPL@/enc_provider 	
+		-I$(srcdir)/../@CRYPTO_IMPL@/enc_provider	\
+		-I$(srcdir)/../@CRYPTO_IMPL@/hash_provider 	
 PROG_LIBPATH=-L$(TOPLIBD)
 PROG_RPATH=$(KRB5_LIBDIR)
 DEFS=
@@ -38,6 +39,7 @@
 STOBJLISTS= des/OBJS.ST md4/OBJS.ST 	\
 	md5/OBJS.ST sha1/OBJS.ST 	\
 	enc_provider/OBJS.ST 		\
+	hash_provider/OBJS.ST 		\
 	arcfour/OBJS.ST 		\
 	aes/OBJS.ST 			\
 	OBJS.ST
@@ -45,8 +47,9 @@
 SUBDIROBJLISTS= des/OBJS.ST md4/OBJS.ST 	\
 		md5/OBJS.ST sha1/OBJS.ST 	\
 		enc_provider/OBJS.ST 		\
+		hash_provider/OBJS.ST 		\
 		arcfour/OBJS.ST 		\
-		aes/OBJS.ST OBJS.ST
+		aes/OBJS.ST 
 
 ##DOS##LIBOBJS = $(OBJS)
 
@@ -70,6 +73,9 @@
 	cd ..\sha1
 	@echo Making in crypto\sha1
 	$(MAKE) -$(MFLAGS)
+	cd ..\hash_provider
+	@echo Making in crypto\hash_provider
+	$(MAKE) -$(MFLAGS)
 	cd ..\enc_provider
 	@echo Making in crypto\enc_provider
 	$(MAKE) -$(MFLAGS)
@@ -94,6 +100,9 @@
 	cd ..\sha1
 	@echo Making clean in crypto\sha1
 	$(MAKE) -$(MFLAGS) clean
+	cd ..\hash_provider
+	@echo Making clean in crypto\hash_provider
+	$(MAKE) -$(MFLAGS) clean
 	cd ..\enc_provider
 	@echo Making clean in crypto\enc_provider
 	$(MAKE) -$(MFLAGS) clean
@@ -118,6 +127,9 @@
 	cd ..\sha1
 	@echo Making check in crypto\sha1
 	$(MAKE) -$(MFLAGS) check
+	cd ..\hash_provider
+	@echo Making check in crypto\hash_provider
+	$(MAKE) -$(MFLAGS) check
 	cd ..\enc_provider
 	@echo Making check in crypto\enc_provider
 	$(MAKE) -$(MFLAGS) check

Modified: branches/enc-perf/src/lib/crypto/builtin/arcfour/Makefile.in
===================================================================
--- branches/enc-perf/src/lib/crypto/builtin/arcfour/Makefile.in	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/builtin/arcfour/Makefile.in	2009-10-01 14:50:04 UTC (rev 22816)
@@ -2,7 +2,7 @@
 myfulldir=lib/crypto/builtin/arcfour
 mydir=lib/crypto/builtin/arcfour
 BUILDTOP=$(REL)..$(S)..$(S)..$(S)..
-LOCALINCLUDES = -I$(srcdir)/.. -I$(srcdir)/../md4 -I$(srcdir)/../../krb
+LOCALINCLUDES = -I$(srcdir)/.. -I$(srcdir)/../../@CRYPTO_IMPL@/md4  -I$(srcdir)/../../krb
 DEFS=
 
 ##DOS##BUILDTOP = ..\..\..\..

Modified: branches/enc-perf/src/lib/crypto/builtin/deps
===================================================================
--- branches/enc-perf/src/lib/crypto/builtin/deps	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/builtin/deps	2009-10-01 14:50:04 UTC (rev 22816)
@@ -21,4 +21,4 @@
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/locate_plugin.h $(SRCTOP)/include/krb5/preauth_plugin.h \
   $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
-  $(srcdir)/../builtin/pbkdf2.c $(srcdir)/../krb/hash_provider/hash_provider.h
+  $(srcdir)/../builtin/pbkdf2.c $(srcdir)/../builtin/hash_provider/hash_provider.h

Copied: branches/enc-perf/src/lib/crypto/builtin/hash_provider (from rev 22815, trunk/src/lib/crypto/builtin/hash_provider)


Modified: branches/enc-perf/src/lib/crypto/crypto_tests/Makefile.in
===================================================================
--- branches/enc-perf/src/lib/crypto/crypto_tests/Makefile.in	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/crypto_tests/Makefile.in	2009-10-01 14:50:04 UTC (rev 22816)
@@ -3,7 +3,7 @@
 mydir=lib/crypto/crypto_tests
 BUILDTOP=$(REL)..$(S)..$(S)..
 LOCALINCLUDES = -I$(srcdir)/../krb -I$(srcdir)/../@CRYPTO_IMPL@/enc_provider 		\
-	-I$(srcdir)/../krb/hash_provider -I$(srcdir)/../krb/keyhash_provider 	\
+	-I$(srcdir)/../@CRYPTO_IMPL@/hash_provider -I$(srcdir)/../krb/keyhash_provider 	\
 	-I$(srcdir)/../krb/dk -I$(srcdir)/../@CRYPTO_IMPL@/ 			\
 	-I$(srcdir)/../krb/yarrow 	\
 	-I$(srcdir)/../krb/crc32 -I$(srcdir)/../krb/old -I$(srcdir)/../krb/raw 	\

Modified: branches/enc-perf/src/lib/crypto/krb/Makefile.in
===================================================================
--- branches/enc-perf/src/lib/crypto/krb/Makefile.in	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/krb/Makefile.in	2009-10-01 14:50:04 UTC (rev 22816)
@@ -2,15 +2,15 @@
 myfulldir=lib/crypto/krb
 mydir=lib/crypto/krb
 BUILDTOP=$(REL)..$(S)..$(S)..
-SUBDIRS= crc32 dk hash_provider keyhash_provider \
+SUBDIRS= crc32 dk keyhash_provider \
 	prf rand2key old raw yarrow 
 LOCALINCLUDES = -I$(srcdir) -I$(srcdir)/../@CRYPTO_IMPL@/enc_provider -I$(srcdir)/dk	\
-		-I$(srcdir)/hash_provider -I$(srcdir)/keyhash_provider 			\
+		-I$(srcdir)/../@CRYPTO_IMPL@/hash_provider -I$(srcdir)/keyhash_provider	\
 		-I$(srcdir)/prf -I$(srcdir)/rand2key		 			\
 		-I$(srcdir)/old -I$(srcdir)/raw -I$(srcdir)/yarrow 			\
 		-I$(srcdir)/../@CRYPTO_IMPL@/ -I$(srcdir)/../@CRYPTO_IMPL@/des		\
 		-I$(srcdir)/../@CRYPTO_IMPL@/aes -I$(srcdir)/../@CRYPTO_IMPL@/arcfour 	\
-		-I$(srcdir)/../@CRYPTO_IMPL@/sha1
+		-I$(srcdir)/../@CRYPTO_IMPL@/sha1 -I$(srcdir)/../@CRYPTO_IMPL@
 PROG_LIBPATH=-L$(TOPLIBD)
 PROG_RPATH=$(KRB5_LIBDIR)
 DEFS=
@@ -154,14 +154,14 @@
 	$(srcdir)/verify_checksum_iov.c
 
 STOBJLISTS=crc32/OBJS.ST  dk/OBJS.ST 			 	\
-	hash_provider/OBJS.ST keyhash_provider/OBJS.ST  	\
+	keyhash_provider/OBJS.ST 			 	\
 	prf/OBJS.ST rand2key/OBJS.ST 			 	\
 	old/OBJS.ST raw/OBJS.ST  yarrow/OBJS.ST  OBJS.ST
 
 SUBDIROBJLISTS=crc32/OBJS.ST  dk/OBJS.ST 		 	\
-	hash_provider/OBJS.ST keyhash_provider/OBJS.ST  	\
+	keyhash_provider/OBJS.ST 			 	\
 	prf/OBJS.ST rand2key/OBJS.ST 			 	\
-	old/OBJS.ST raw/OBJS.ST  yarrow/OBJS.ST OBJS.ST 
+	old/OBJS.ST raw/OBJS.ST  yarrow/OBJS.ST 
 
 ##DOS##LIBOBJS = $(OBJS)
 
@@ -179,9 +179,6 @@
 	cd ..\dk
 	@echo Making in crypto\dk
 	$(MAKE) -$(MFLAGS)
-	cd ..\hash_provider
-	@echo Making in crypto\hash_provider
-	$(MAKE) -$(MFLAGS)
 	cd ..\keyhash_provider
 	@echo Making in crypto\keyhash_provider
 	$(MAKE) -$(MFLAGS)
@@ -209,9 +206,6 @@
 	cd ..\dk
 	@echo Making clean in crypto\dk
 	$(MAKE) -$(MFLAGS) clean
-	cd ..\hash_provider
-	@echo Making clean in crypto\hash_provider
-	$(MAKE) -$(MFLAGS) clean
 	cd ..\keyhash_provider
 	@echo Making clean in crypto\keyhash_provider
 	$(MAKE) -$(MFLAGS) clean
@@ -239,9 +233,6 @@
 	cd ..\dk
 	@echo Making check in crypto\dk
 	$(MAKE) -$(MFLAGS) check
-	cd ..\hash_provider
-	@echo Making check in crypto\hash_provider
-	$(MAKE) -$(MFLAGS) check
 	cd ..\keyhash_provider
 	@echo Making check in crypto\keyhash_provider
 	$(MAKE) -$(MFLAGS) check

Modified: branches/enc-perf/src/lib/crypto/krb/deps
===================================================================
--- branches/enc-perf/src/lib/crypto/krb/deps	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/krb/deps	2009-10-01 14:50:04 UTC (rev 22816)
@@ -52,7 +52,7 @@
   $(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
   $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/locate_plugin.h \
   $(SRCTOP)/include/krb5/preauth_plugin.h $(SRCTOP)/include/port-sockets.h \
-  $(SRCTOP)/include/socket-utils.h $(srcdir)/hash_provider/hash_provider.h \
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/../builtin/hash_provider/hash_provider.h \
   $(srcdir)/keyhash_provider/keyhash_provider.h cksumtypes.c \
   cksumtypes.h
 coll_proof_cksum.so coll_proof_cksum.po $(OUTPRE)coll_proof_cksum.$(OBJEXT): \
@@ -192,7 +192,7 @@
   $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
   $(srcdir)/../builtin/aes/aes_s2k.h $(srcdir)/../builtin/arcfour/arcfour.h \
   $(srcdir)/../builtin/des/des_int.h $(srcdir)/../builtin/enc_provider/enc_provider.h \
-  $(srcdir)/dk/dk.h $(srcdir)/hash_provider/hash_provider.h \
+  $(srcdir)/dk/dk.h $(srcdir)/../builtin/hash_provider/hash_provider.h \
   $(srcdir)/old/old.h $(srcdir)/prf/prf_int.h $(srcdir)/raw/raw.h \
   etypes.c etypes.h
 keyblocks.so keyblocks.po $(OUTPRE)keyblocks.$(OBJEXT): \
@@ -329,7 +329,7 @@
   $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
   $(srcdir)/../builtin/enc_provider/enc_provider.h $(srcdir)/../builtin/sha1/shs.h \
   $(srcdir)/yarrow/yarrow.h $(srcdir)/yarrow/ycipher.h \
-  $(srcdir)/yarrow/yhash.h $(srcdir)/yarrow/ytypes.h \
+  $(srcdir)/../builtin/yhash.h $(srcdir)/yarrow/ytypes.h \
   prng.c
 random_to_key.so random_to_key.po $(OUTPRE)random_to_key.$(OBJEXT): \
   $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \

Modified: branches/enc-perf/src/lib/crypto/krb/keyhash_provider/Makefile.in
===================================================================
--- branches/enc-perf/src/lib/crypto/krb/keyhash_provider/Makefile.in	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/krb/keyhash_provider/Makefile.in	2009-10-01 14:50:04 UTC (rev 22816)
@@ -4,7 +4,7 @@
 BUILDTOP=$(REL)..$(S)..$(S)..$(S)..
 LOCALINCLUDES = -I$(srcdir)/../../@CRYPTO_IMPL@/des -I$(srcdir)/../../@CRYPTO_IMPL@/md4 \
 		-I$(srcdir)/../../@CRYPTO_IMPL@/md5 -I$(srcdir)/../../@CRYPTO_IMPL@/arcfour \
-		-I$(srcdir)/../hash_provider
+		-I$(srcdir)/../../@CRYPTO_IMPL@/hash_provider -I$(srcdir)/../../@CRYPTO_IMPL@
 DEFS=
 
 ##DOS##BUILDTOP = ..\..\..\..

Modified: branches/enc-perf/src/lib/crypto/krb/keyhash_provider/deps
===================================================================
--- branches/enc-perf/src/lib/crypto/krb/keyhash_provider/deps	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/krb/keyhash_provider/deps	2009-10-01 14:50:04 UTC (rev 22816)
@@ -44,7 +44,7 @@
   $(SRCTOP)/include/krb5/preauth_plugin.h $(SRCTOP)/include/port-sockets.h \
   $(SRCTOP)/include/socket-utils.h $(srcdir)/../../builtin/arcfour/arcfour-int.h \
   $(srcdir)/../../builtin/arcfour/arcfour.h $(srcdir)/../../builtin/md5/rsa-md5.h \
-  $(srcdir)/../aead.h $(srcdir)/../cksumtypes.h $(srcdir)/../hash_provider/hash_provider.h \
+  $(srcdir)/../aead.h $(srcdir)/../cksumtypes.h $(srcdir)/../../builtin/hash_provider/hash_provider.h \
   hmac_md5.c keyhash_provider.h
 md5_hmac.so md5_hmac.po $(OUTPRE)md5_hmac.$(OBJEXT): \
   $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \
@@ -57,5 +57,5 @@
   $(SRCTOP)/include/krb5/preauth_plugin.h $(SRCTOP)/include/port-sockets.h \
   $(SRCTOP)/include/socket-utils.h $(srcdir)/../../builtin/arcfour/arcfour-int.h \
   $(srcdir)/../../builtin/arcfour/arcfour.h $(srcdir)/../../builtin/md5/rsa-md5.h \
-  $(srcdir)/../hash_provider/hash_provider.h keyhash_provider.h \
+  $(srcdir)/../../builtin/hash_provider/hash_provider.h keyhash_provider.h \
   md5_hmac.c

Modified: branches/enc-perf/src/lib/crypto/krb/prf/Makefile.in
===================================================================
--- branches/enc-perf/src/lib/crypto/krb/prf/Makefile.in	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/krb/prf/Makefile.in	2009-10-01 14:50:04 UTC (rev 22816)
@@ -4,6 +4,7 @@
 BUILDTOP=$(REL)..$(S)..$(S)..$(S)..
 LOCALINCLUDES = -I$(srcdir) -I$(srcdir)/.. 		\
 		-I$(srcdir)/../dk			\
+		-I$(srcdir)/../../@CRYPTO_IMPL@ 	\
 		-I$(srcdir)/../../@CRYPTO_IMPL@/md5 	\
 		-I$(srcdir)/../../@CRYPTO_IMPL@/sha1 
 DEFS=

Modified: branches/enc-perf/src/lib/crypto/krb/prf/deps
===================================================================
--- branches/enc-perf/src/lib/crypto/krb/prf/deps	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/krb/prf/deps	2009-10-01 14:50:04 UTC (rev 22816)
@@ -30,5 +30,5 @@
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/locate_plugin.h $(SRCTOP)/include/krb5/preauth_plugin.h \
   $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
-  $(srcdir)/../hash_provider/hash_provider.h prf_int.h \
+  $(srcdir)/../../builtin/hash_provider/hash_provider.h prf_int.h \
   rc4_prf.c

Modified: branches/enc-perf/src/lib/crypto/krb/yarrow/Makefile.in
===================================================================
--- branches/enc-perf/src/lib/crypto/krb/yarrow/Makefile.in	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/krb/yarrow/Makefile.in	2009-10-01 14:50:04 UTC (rev 22816)
@@ -2,7 +2,10 @@
 myfulldir=lib/crypto/krb/yarrow
 mydir=lib/crypto/krb/yarrow
 BUILDTOP=$(REL)..$(S)..$(S)..$(S)..
-LOCALINCLUDES = -I$(srcdir)/.. -I$(srcdir)/../../@CRYPTO_IMPL@ -I$(srcdir)/../../@CRYPTO_IMPL@/sha1 -I$(srcdir)/../../@CRYPTO_IMPL@/enc_provider
+LOCALINCLUDES = -I$(srcdir)/.. \
+		-I$(srcdir)/../../@CRYPTO_IMPL@		\
+		-I$(srcdir)/../../@CRYPTO_IMPL@/sha1 	\
+		-I$(srcdir)/../../@CRYPTO_IMPL@/enc_provider
 DEFS=
 
 ##DOS##BUILDTOP = ..\..\..\..

Modified: branches/enc-perf/src/lib/crypto/krb/yarrow/deps
===================================================================
--- branches/enc-perf/src/lib/crypto/krb/yarrow/deps	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/krb/yarrow/deps	2009-10-01 14:50:04 UTC (rev 22816)
@@ -11,7 +11,7 @@
   $(SRCTOP)/include/krb5/locate_plugin.h $(SRCTOP)/include/krb5/preauth_plugin.h \
   $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
   $(srcdir)/../../builtin/sha1/shs.h yarrow.c yarrow.h \
-  ycipher.h yexcep.h yhash.h ylock.h ystate.h ytypes.h
+  ycipher.h yexcep.h $(srcdir)/../../builtin/yhash.h ylock.h ystate.h ytypes.h
 ycipher.so ycipher.po $(OUTPRE)ycipher.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(BUILDTOP)/include/krb5/krb5.h $(BUILDTOP)/include/osconf.h \
   $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/k5-buf.h \
@@ -23,4 +23,4 @@
   $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
   $(srcdir)/../../builtin/enc_provider/enc_provider.h \
   $(srcdir)/../../builtin/sha1/shs.h yarrow.h ycipher.c \
-  ycipher.h yhash.h ytypes.h
+  ycipher.h $(srcdir)/../../builtin/yhash.h ytypes.h

Modified: branches/enc-perf/src/lib/crypto/krb/yarrow/yarrow.c
===================================================================
--- branches/enc-perf/src/lib/crypto/krb/yarrow/yarrow.c	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/krb/yarrow/yarrow.c	2009-10-01 14:50:04 UTC (rev 22816)
@@ -34,7 +34,6 @@
 
 #define YARROW_IMPL
 #include "yarrow.h"
-#include "yhash.h"
 #include "ycipher.h"
 #include "ylock.h"
 #include "ystate.h"

Modified: branches/enc-perf/src/lib/crypto/krb/yarrow/yarrow.h
===================================================================
--- branches/enc-perf/src/lib/crypto/krb/yarrow/yarrow.h	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/krb/yarrow/yarrow.h	2009-10-01 14:50:04 UTC (rev 22816)
@@ -10,7 +10,7 @@
 #define YARROW_NO_MATHLIB
 
 #include "ytypes.h"
-#include "yhash.h"
+#include <yhash.h>
 #include "ycipher.h"
 
 /* These error codes are returned by the functions below. */

Deleted: branches/enc-perf/src/lib/crypto/krb/yarrow/yhash.h

Copied: branches/enc-perf/src/lib/crypto/openssl/aes (from rev 22815, trunk/src/lib/crypto/openssl/aes)

Copied: branches/enc-perf/src/lib/crypto/openssl/arcfour (from rev 22815, trunk/src/lib/crypto/openssl/arcfour)

Copied: branches/enc-perf/src/lib/crypto/openssl/des (from rev 22815, trunk/src/lib/crypto/openssl/des)

Copied: branches/enc-perf/src/lib/crypto/openssl/hash_provider (from rev 22815, trunk/src/lib/crypto/openssl/hash_provider)

Modified: branches/enc-perf/src/lib/crypto/openssl/hmac.c
===================================================================
--- branches/enc-perf/src/lib/crypto/openssl/hmac.c	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/openssl/hmac.c	2009-10-01 14:50:04 UTC (rev 22816)
@@ -1,4 +1,4 @@
-/*
+/* lib/crypto/openssl/hmac.c
  */
 
 #include "k5-int.h"

Modified: branches/enc-perf/src/lib/crypto/openssl/sha1/shs.c
===================================================================
--- branches/enc-perf/src/lib/crypto/openssl/sha1/shs.c	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/openssl/sha1/shs.c	2009-10-01 14:50:04 UTC (rev 22816)
@@ -3,12 +3,19 @@
 #include <sys/types.h>
 #endif
 #include <string.h>
+#define h0init  0x67452301L
+#define h1init  0xEFCDAB89L
+#define h2init  0x98BADCFEL
+#define h3init  0x10325476L
+#define h4init  0xC3D2E1F0L
 
 /* Initialize the SHS values */
 void shsInit(SHS_INFO *shsInfo)
 {
     EVP_MD_CTX_init(&shsInfo->ossl_sha1_ctx );
     EVP_DigestInit_ex(&shsInfo->ossl_sha1_ctx , EVP_sha1(), NULL);
+    shsInfo->digestLen = 0;
+    memset(shsInfo->digestBuf, 0 , sizeof(shsInfo->digestBuf));
 }
 
 /* Update SHS for a block of data */
@@ -22,13 +29,8 @@
 
 void shsFinal(SHS_INFO *shsInfo)
 {
-    unsigned char *digest_buf = NULL;
+    EVP_DigestFinal_ex(&shsInfo->ossl_sha1_ctx ,(unsigned char *)shsInfo->digestBuf , &shsInfo->digestLen); 
+    EVP_MD_CTX_cleanup(&shsInfo->ossl_sha1_ctx );
+}
 
-    digest_buf =  (unsigned char *)OPENSSL_malloc( sizeof(shsInfo->digest));
 
-    EVP_DigestFinal_ex(&shsInfo->ossl_sha1_ctx , digest_buf , &shsInfo->digest_len); 
-
-    memcpy(shsInfo->digest, digest_buf, shsInfo->digest_len);
-    OPENSSL_free(digest_buf);
-    EVP_MD_CTX_cleanup(&shsInfo->ossl_sha1_ctx );
-}

Modified: branches/enc-perf/src/lib/crypto/openssl/sha1/shs.h
===================================================================
--- branches/enc-perf/src/lib/crypto/openssl/sha1/shs.h	2009-09-30 22:33:41 UTC (rev 22815)
+++ branches/enc-perf/src/lib/crypto/openssl/sha1/shs.h	2009-10-01 14:50:04 UTC (rev 22816)
@@ -22,11 +22,9 @@
 /* The structure for storing SHS info */
 
 typedef struct {
-    EVP_MD_CTX ossl_sha1_ctx;
-    unsigned int   digest_len;
-    SHS_LONG digest[ 5 ];            /* Message digest */
-    SHS_LONG countLo, countHi;       /* 64-bit bit count */
-    SHS_LONG data[ 16 ];             /* SHS data buffer */
+    EVP_MD_CTX ossl_sha1_ctx;  
+    unsigned char   digestBuf[SHS_DIGESTSIZE]; /* output */
+    unsigned int    digestLen; /* output */
 } SHS_INFO;
 
 /* Message digest functions (shs.c) */

Copied: branches/enc-perf/src/lib/crypto/openssl/yhash.h (from rev 22815, trunk/src/lib/crypto/openssl/yhash.h)

Property changes on: branches/enc-perf/src/lib/crypto/builtin/hash_provider
___________________________________________________________________
Name: svn:mergeinfo
   + 

Copied: branches/enc-perf/src/lib/crypto/builtin/yhash.h (from rev 22815, trunk/src/lib/crypto/builtin/yhash.h)




More information about the cvs-krb5 mailing list