Changed the crypto make system to add build flexibility. The update cancels the requi...
authorZhanna Tsitkov <tsitkova@mit.edu>
Fri, 23 Oct 2009 19:45:48 +0000 (19:45 +0000)
committerZhanna Tsitkov <tsitkova@mit.edu>
Fri, 23 Oct 2009 19:45:48 +0000 (19:45 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22995 dc483132-0cff-0310-8789-dd5450dbe970

40 files changed:
src/Makefile.in
src/configure.in
src/lib/crypto/Makefile.in
src/lib/crypto/builtin/Makefile.in
src/lib/crypto/builtin/aes/Makefile.in
src/lib/crypto/builtin/aes/deps
src/lib/crypto/builtin/arcfour/Makefile.in
src/lib/crypto/builtin/arcfour/deps
src/lib/crypto/builtin/deps
src/lib/crypto/builtin/des/Makefile.in
src/lib/crypto/builtin/des/deps
src/lib/crypto/builtin/des/t_afss2k.c [moved from src/lib/crypto/crypto_tests/t_afss2k.c with 100% similarity]
src/lib/crypto/builtin/des/t_verify.c [moved from src/lib/crypto/crypto_tests/t_verify.c with 100% similarity]
src/lib/crypto/builtin/enc_provider/Makefile.in
src/lib/crypto/builtin/enc_provider/deps
src/lib/crypto/builtin/hash_provider/Makefile.in
src/lib/crypto/builtin/hash_provider/deps
src/lib/crypto/builtin/md4/Makefile.in
src/lib/crypto/builtin/md4/deps
src/lib/crypto/builtin/md5/Makefile.in
src/lib/crypto/builtin/md5/deps
src/lib/crypto/builtin/sha1/Makefile.in
src/lib/crypto/builtin/sha1/deps
src/lib/crypto/builtin/t_cf2.c [moved from src/lib/crypto/crypto_tests/t_cf2.c with 100% similarity]
src/lib/crypto/builtin/t_cf2.comments [moved from src/lib/crypto/crypto_tests/t_cf2.comments with 100% similarity]
src/lib/crypto/builtin/t_cf2.expected [moved from src/lib/crypto/crypto_tests/t_cf2.expected with 100% similarity]
src/lib/crypto/builtin/t_cf2.in [moved from src/lib/crypto/crypto_tests/t_cf2.in with 100% similarity]
src/lib/crypto/crypto_tests/Makefile.in
src/lib/crypto/crypto_tests/t_shs.c [deleted file]
src/lib/crypto/crypto_tests/t_shs3.c [deleted file]
src/lib/crypto/libk5crypto.exports
src/lib/crypto/openssl/aes/aes-gen.c
src/lib/crypto/openssl/des/f_tables.c [deleted file]
src/lib/crypto/openssl/des/f_tables.h [deleted file]
src/lib/crypto/openssl/enc_provider/deps
src/lib/crypto/openssl/enc_provider/des3.c
src/lib/crypto/openssl/md4/deps
src/lib/crypto/openssl/md5/deps
src/lib/crypto/openssl/sha1/deps
src/util/collected-client-lib/Makefile.in

index e5be6e1647b934c2077cfe3244a36351b06a698f..ac850338cb291451c86d245e22db71fb717f0dc1 100644 (file)
@@ -194,15 +194,15 @@ WINMAKEFILES=Makefile \
        clients\kcpytkt\Makefile clients\kdeltkt\Makefile \
        include\Makefile \
        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\builtin\hash_provider\Makefile \
+       lib\crypto\krb\crc32\Makefile lib\crypto\@CRYPTO_IMPL@\des\Makefile \
+       lib\crypto\krb\dk\Makefile lib\crypto\@CRYPTO_IMPL@\enc_provider\Makefile \
+       lib\crypto\@CRYPTO_IMPL@\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 \
-       lib\crypto\builtin\sha1\Makefile lib\crypto\builtin\arcfour\Makefile \
-       lib\crypto\builtin\md4\Makefile lib\crypto\builtin\md5\Makefile \
-       lib\crypto\krb\yarrow\Makefile lib\crypto\builtin\aes\Makefile \
+       lib\crypto\@CRYPTO_IMPL@\sha1\Makefile lib\crypto\@CRYPTO_IMPL@\arcfour\Makefile \
+       lib\crypto\@CRYPTO_IMPL@\md4\Makefile lib\crypto\@CRYPTO_IMPL@\md5\Makefile \
+       lib\crypto\krb\yarrow\Makefile lib\crypto\@CRYPTO_IMPL@\aes\Makefile \
        lib\crypto\crypto_tests \
        lib\gssapi\Makefile lib\gssapi\generic\Makefile \
        lib\gssapi\krb5\Makefile lib\gssapi\mechglue\Makefile \
@@ -265,27 +265,27 @@ WINMAKEFILES=Makefile \
 ##DOS##        $(WCONFIG) config < $@.in > $@
 ##DOS##lib\crypto\krb\crc32\Makefile: lib\crypto\krb\crc32\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
-##DOS##lib\crypto\builtin\des\Makefile: lib\crypto\builtin\des\Makefile.in $(MKFDEP)
+##DOS##lib\crypto\@CRYPTO_IMPL@\des\Makefile: lib\crypto\@CRYPTO_IMPL@\des\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
 ##DOS##lib\crypto\krb\dk\Makefile: lib\crypto\krb\dk\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
-##DOS##lib\crypto\builtin\enc_provider\Makefile: lib\crypto\builtin\enc_provider\Makefile.in $(MKFDEP)
+##DOS##lib\crypto\@CRYPTO_IMPL@\enc_provider\Makefile: lib\crypto\@CRYPTO_IMPL@\enc_provider\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
-##DOS##lib\crypto\builtin\hash_provider\Makefile: lib\crypto\builtin\hash_provider\Makefile.in $(MKFDEP)
+##DOS##lib\crypto\@CRYPTO_IMPL@\hash_provider\Makefile: lib\crypto\@CRYPTO_IMPL@\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 > $@
-##DOS##lib\crypto\builtin\sha1\Makefile: lib\crypto\builtin\sha1\Makefile.in $(MKFDEP)
+##DOS##lib\crypto\@CRYPTO_IMPL@\sha1\Makefile: lib\crypto\@CRYPTO_IMPL@\sha1\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
-##DOS##lib\crypto\builtin\arcfour\Makefile: lib\crypto\builtin\arcfour\Makefile.in $(MKFDEP)
+##DOS##lib\crypto\@CRYPTO_IMPL@\arcfour\Makefile: lib\crypto\@CRYPTO_IMPL@\arcfour\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
-##DOS##lib\crypto\builtin\md4\Makefile: lib\crypto\builtin\md4\Makefile.in $(MKFDEP)
+##DOS##lib\crypto\@CRYPTO_IMPL@\md4\Makefile: lib\crypto\@CRYPTO_IMPL@\md4\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
-##DOS##lib\crypto\builtin\md5\Makefile: lib\crypto\md5\builtin\Makefile.in $(MKFDEP)
+##DOS##lib\crypto\@CRYPTO_IMPL@\md5\Makefile: lib\crypto\md5\@CRYPTO_IMPL@\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
 ##DOS##lib\crypto\krb\yarrow\Makefile: lib\crypto\krb\yarrow\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
-##DOS##lib\crypto\builtin\aes\Makefile: lib\crypto\builtin\aes\Makefile.in $(MKFDEP)
+##DOS##lib\crypto\@CRYPTO_IMPL@\aes\Makefile: lib\crypto\@CRYPTO_IMPL@\aes\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
 ##DOS##lib\crypto\krb\old\Makefile: lib\crypto\krb\old\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
@@ -293,7 +293,7 @@ WINMAKEFILES=Makefile \
 ##DOS##        $(WCONFIG) config < $@.in > $@
 ##DOS##lib\crypto\krb\Makefile: lib\crypto\krb\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
-##DOS##lib\crypto\builtin\Makefile: lib\crypto\builtin\Makefile.in $(MKFDEP)
+##DOS##lib\crypto\@CRYPTO_IMPL@\Makefile: lib\crypto\@CRYPTO_IMPL@\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
 ##DOS##lib\gssapi\Makefile: lib\gssapi\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
@@ -395,14 +395,15 @@ FILES= ./* \
        clients/kpasswd/* clients/kcpytkt/* clients/kdeltkt/* \
        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/builtin/hash_provider/* \
+       lib/crypto/* lib/crypto/krb/crc32/* lib/crypto/@CRYPTO_IMPL@/des/* lib/crypto/krb/dk/* \
+       lib/crypto/@CRYPTO_IMPL@/enc_provider/* lib/crypto/@CRYPTO_IMPL@/hash_provider/* \
        lib/crypto/krb/keyhash_provider/* \
        lib/crypto/krb/prf/* lib/crypto/krb/rand2key/* \
        lib/crypto/krb/old/* lib/crypto/krb/raw/* \
-       lib/crypto/builtin/sha1/* lib/crypto/builtin/arcfour/* lib/crypto/builtin/md4/* \
-       lib/crypto/builtin/md5/* lib/crypto/krb/yarrow/* \
-       lib/crypto/builtin/* lib/crypto/krb/* lib/crypto/crypto_tests \
+       lib/crypto/@CRYPTO_IMPL@/sha1/* lib/crypto/@CRYPTO_IMPL@/arcfour/* \
+       lib/crypto/@CRYPTO_IMPL@/md4/* \
+       lib/crypto/@CRYPTO_IMPL@/md5/* lib/crypto/krb/yarrow/* \
+       lib/crypto/@CRYPTO_IMPL@/* lib/crypto/krb/* lib/crypto/crypto_tests \
        lib/gssapi/* lib/gssapi/generic/* lib/gssapi/krb5/* \
        lib/gssapi/mechglue/* lib/gssapi/spnego/* \
        lib/krb5/* lib/krb5/asn.1/* lib/krb5/krb/* \
index af98dfbc917aaa5a758896b093e100db5cad8536..84ffdff63f0a93aa6d3335840fbd3348d007d0b0 100644 (file)
@@ -1059,13 +1059,13 @@ V5_AC_OUTPUT_MAKEFILE(.
 
        lib lib/kdb
 
-       lib/crypto lib/crypto/krb lib/crypto/krb/crc32 lib/crypto/builtin/des
-       lib/crypto/krb/dk lib/crypto/builtin/enc_provider
-       lib/crypto/builtin/hash_provider lib/crypto/krb/keyhash_provider
+       lib/crypto lib/crypto/krb lib/crypto/krb/crc32 lib/crypto/$CRYPTO_IMPL/des
+       lib/crypto/krb/dk lib/crypto/$CRYPTO_IMPL/enc_provider
+       lib/crypto/$CRYPTO_IMPL/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
-       lib/crypto/builtin/arcfour lib/crypto/krb/yarrow lib/crypto/builtin/aes
+       lib/crypto/$CRYPTO_IMPL lib/crypto/$CRYPTO_IMPL/md4 lib/crypto/$CRYPTO_IMPL/md5
+       lib/crypto/krb/old lib/crypto/krb/raw lib/crypto/$CRYPTO_IMPL/sha1
+       lib/crypto/$CRYPTO_IMPL/arcfour lib/crypto/krb/yarrow lib/crypto/$CRYPTO_IMPL/aes
        lib/crypto/crypto_tests
 
        lib/krb5 lib/krb5/error_tables lib/krb5/asn.1 lib/krb5/ccache
index b89619f4f1170a045cb207655e3090f5c881ff97..e22f48d5bfa49a80860d806fff840204e6046fda 100644 (file)
@@ -2,7 +2,7 @@ thisconfigdir=../..
 myfulldir=lib/crypto
 mydir=lib/crypto
 BUILDTOP=$(REL)..$(S)..
-SUBDIRS= krb builtin crypto_tests
+SUBDIRS= krb @CRYPTO_IMPL@ crypto_tests
 
 RUN_SETUP = @KRB5_RUN_ENV@
 PROG_LIBPATH=-L$(TOPLIBD)
@@ -20,21 +20,21 @@ LIBINITFUNC=cryptoint_initialize_library
 LIBFINIFUNC=cryptoint_cleanup_library
 RELDIR=crypto
 
-STOBJLISTS=krb/crc32/OBJS.ST krb/dk/OBJS.ST builtin/enc_provider/OBJS.ST       \
-       builtin/hash_provider/OBJS.ST krb/keyhash_provider/OBJS.ST              \
+STOBJLISTS=krb/crc32/OBJS.ST krb/dk/OBJS.ST @CRYPTO_IMPL@/enc_provider/OBJS.ST \
+       @CRYPTO_IMPL@/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            \
-       builtin/arcfour/OBJS.ST  builtin/aes/OBJS.ST builtin/des/OBJS.ST        \
-       krb/OBJS.ST  builtin/OBJS.ST
+       @CRYPTO_IMPL@/md4/OBJS.ST @CRYPTO_IMPL@/md5/OBJS.ST @CRYPTO_IMPL@/sha1/OBJS.ST          \
+       @CRYPTO_IMPL@/arcfour/OBJS.ST  @CRYPTO_IMPL@/aes/OBJS.ST @CRYPTO_IMPL@/des/OBJS.ST      \
+       krb/OBJS.ST  @CRYPTO_IMPL@/OBJS.ST
 
-SUBDIROBJLISTS=krb/crc32/OBJS.ST krb/dk/OBJS.ST builtin/enc_provider/OBJS.ST   \
-       builtin/hash_provider/OBJS.ST krb/keyhash_provider/OBJS.ST              \
+SUBDIROBJLISTS=krb/crc32/OBJS.ST krb/dk/OBJS.ST @CRYPTO_IMPL@/enc_provider/OBJS.ST     \
+       @CRYPTO_IMPL@/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            \
-       builtin/arcfour/OBJS.ST builtin/aes/OBJS.ST builtin/des/OBJS.ST         \
-       krb/OBJS.ST builtin/OBJS.ST
+       @CRYPTO_IMPL@/md4/OBJS.ST @CRYPTO_IMPL@/md5/OBJS.ST     @CRYPTO_IMPL@/sha1/OBJS.ST              \
+       @CRYPTO_IMPL@/arcfour/OBJS.ST @CRYPTO_IMPL@/aes/OBJS.ST @CRYPTO_IMPL@/des/OBJS.ST               \
+       krb/OBJS.ST @CRYPTO_IMPL@/OBJS.ST
 
 # No dependencies.  Record places to find this shared object if the target
 # link editor and loader support it.
index deccbd647c2e7806612636da497e999da0a4f168..7205660545ab066c6e6865c573355b74c01ab43e 100644 (file)
@@ -5,18 +5,20 @@ BUILDTOP=$(REL)..$(S)..$(S)..
 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        \
-               -I$(srcdir)/../@CRYPTO_IMPL@/aes        \
-               -I$(srcdir)/../@CRYPTO_IMPL@/arcfour    \
-               -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@/hash_provider      
+               -I$(srcdir)/des         \
+               -I$(srcdir)/aes         \
+               -I$(srcdir)/arcfour     \
+               -I$(srcdir)/sha1        \
+               -I$(srcdir)/md4         \
+               -I$(srcdir)/md5 \
+               -I$(srcdir)/enc_provider        \
+               -I$(srcdir)/hash_provider       
 PROG_LIBPATH=-L$(TOPLIBD)
 PROG_RPATH=$(KRB5_LIBDIR)
 DEFS=
 
+EXTRADEPSRCS= $(srcdir)/t_cf2.c 
+
 
 ##DOSBUILDTOP = ..\..\..
 ##DOSLIBNAME=$(OUTPRE)crypto.lib
@@ -25,16 +27,16 @@ DEFS=
 ##DOSOBJFILEDEP =$(OUTPRE)crypto.lst $(OUTPRE)des.lst $(OUTPRE)md4.lst $(OUTPRE)md5.lst $(OUTPRE)sha1.lst $(OUTPRE)arcfour.lst $(OUTPRE)crc32.lst $(OUTPRE)dk.lst $(OUTPRE)old.lst $(OUTPRE)raw.lst $(OUTPRE)enc_prov.lst $(OUTPRE)hash_pro.lst $(OUTPRE)kh_pro.lst $(OUTPRE)aes.lst
 
 STLIBOBJS=\
-       ../@CRYPTO_IMPL@/hmac.o \
-       ../@CRYPTO_IMPL@/pbkdf2.o               
+       hmac.o  \
+       pbkdf2.o                
 
 OBJS=\
-       $(OUTPRE)../@CRYPTO_IMPL@/hmac.$(OBJEXT)        \
-       $(OUTPRE)../@CRYPTO_IMPL@/pbkdf2.$(OBJEXT)              
+       $(OUTPRE)hmac.$(OBJEXT) \
+       $(OUTPRE)pbkdf2.$(OBJEXT)               
 
 SRCS=\
-       $(srcdir)/../@CRYPTO_IMPL@/hmac.c       \
-       $(srcdir)/../@CRYPTO_IMPL@/pbkdf2.c     
+       $(srcdir)/hmac.c        \
+       $(srcdir)/pbkdf2.c      
 
 STOBJLISTS= des/OBJS.ST md4/OBJS.ST    \
        md5/OBJS.ST sha1/OBJS.ST        \
@@ -59,6 +61,18 @@ includes:: depend
 depend:: $(SRCS)
 
 clean-unix:: clean-libobjs
+check-unix:: t_cf2
+       $(RUN_SETUP) $(VALGRIND) ./t_cf2 <$(srcdir)/t_cf2.in >t_cf2.output
+       diff t_cf2.output $(srcdir)/t_cf2.expected
+
+t_cf2$(EXEEXT): t_cf2.$(OBJEXT) $(SUPPORT_DEPLIB)
+       $(CC_LINK) -o $@ t_cf2.$(OBJEXT)  -lkrb5 -lk5crypto -lcom_err $(SUPPORT_LIB)
+
+clean::
+       $(RM)  t_cf2 t_cf2.o  t_cf2.output
+
+
+
 
 all-windows::
        cd ..\des
index a39e7df92a10b571bccad43fec095babeb86cd0a..d8e866f221480be8cfb4200f9002d2371f48db9a 100644 (file)
@@ -12,30 +12,28 @@ DEFS=
 PROG_LIBPATH=-L$(TOPLIBD)
 PROG_RPATH=$(KRB5_LIBDIR)
 
-CIMPL = @CRYPTO_IMPL@/aes
-
 STLIBOBJS=\
-       ../../$(CIMPL)/aescrypt.o       \
-       ../../$(CIMPL)/aestab.o \
-       ../../$(CIMPL)/aeskey.o \
-       ../../$(CIMPL)/aes_s2k.o
+       aescrypt.o      \
+       aestab.o        \
+       aeskey.o        \
+       aes_s2k.o
 
 OBJS=\
-       $(OUTPRE)../../$(CIMPL)/aescrypt.$(OBJEXT)      \
-       $(OUTPRE)../../$(CIMPL)/aestab.$(OBJEXT)        \
-       $(OUTPRE)../../$(CIMPL)/aeskey.$(OBJEXT)        \
-       $(OUTPRE)../../$(CIMPL)/aes_s2k.$(OBJEXT)
+       $(OUTPRE)aescrypt.$(OBJEXT)     \
+       $(OUTPRE)aestab.$(OBJEXT)       \
+       $(OUTPRE)aeskey.$(OBJEXT)       \
+       $(OUTPRE)aes_s2k.$(OBJEXT)
 
 SRCS=\
-       $(srcdir)/../../$(CIMPL)/aescrypt.c     \
-       $(srcdir)/../../$(CIMPL)/aestab.c       \
-       $(srcdir)/../../$(CIMPL)/aeskey.c       \
-       $(srcdir)/../../$(CIMPL)/aes_s2k.c
+       $(srcdir)/aescrypt.c    \
+       $(srcdir)/aestab.c      \
+       $(srcdir)/aeskey.c      \
+       $(srcdir)/aes_s2k.c
 
 GEN_OBJS=\
-       $(OUTPRE)../../$(CIMPL)/aescrypt.$(OBJEXT)      \
-       $(OUTPRE)../../$(CIMPL)/aestab.$(OBJEXT)        \
-       $(OUTPRE)../../$(CIMPL)/aeskey.$(OBJEXT)
+       $(OUTPRE)aescrypt.$(OBJEXT)     \
+       $(OUTPRE)aestab.$(OBJEXT)       \
+       $(OUTPRE)aeskey.$(OBJEXT)
 
 ##DOS##LIBOBJS = $(OBJS)
 
@@ -45,11 +43,11 @@ includes:: depend
 
 depend:: $(SRCS)
 
-../../$(CIMPL)/aes-gen: ../../$(CIMPL)/aes-gen.o $(GEN_OBJS)
-       $(CC_LINK) -I../../../../include $(LOCALINCLUDES) -o ../../$(CIMPL)/aes-gen ../../$(CIMPL)/aes-gen.o $(GEN_OBJS)
+aes-gen: aes-gen.o $(GEN_OBJS)
+       $(CC_LINK) -I../../../../include $(LOCALINCLUDES) -o aes-gen aes-gen.o $(GEN_OBJS)
 
-run-aes-gen: ../../$(CIMPL)/aes-gen
-       ../../$(CIMPL)/aes-gen > kresults.out
+run-aes-gen: aes-gen
+       ./aes-gen > kresults.out
 
 check:: run-aes-gen
 
@@ -57,7 +55,7 @@ check:: run-aes-gen
 clean-unix:: clean-libobjs
 
 clean::
-       -$(RM) ../../$(CIMPL)/aes-gen ../../$(CIMPL)/aes-gen.o ../../$(CIMPL)/kresults.out
+       -$(RM) aes-gen aes-gen.o kresults.out
 
 @libobj_frag@
 
index 6dc70ef9c28c4e96e09ce90601c28e1852529d36..eac0a5c1caecb06b914e846c5f654822f077062a 100644 (file)
@@ -2,15 +2,15 @@
 # Generated makefile dependencies follow.
 #
 aescrypt.so aescrypt.po $(OUTPRE)aescrypt.$(OBJEXT): \
-  $(BUILDTOP)/include/autoconf.h $(srcdir)/../../builtin/aes/aes.h \
-  $(srcdir)/../../builtin/aes/aescrypt.c $(srcdir)/../../builtin/aes/aesopt.h \
-  $(srcdir)/../../builtin/aes/uitypes.h
+  $(BUILDTOP)/include/autoconf.h $(srcdir)/aes.h \
+  $(srcdir)/aescrypt.c $(srcdir)/aesopt.h \
+  $(srcdir)/uitypes.h
 aestab.so aestab.po $(OUTPRE)aestab.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
-  $(srcdir)/../../builtin/aes/aes.h $(srcdir)/../../builtin/aes/aesopt.h \
-  $(srcdir)/../../builtin/aes/aestab.c $(srcdir)/../../builtin/aes/uitypes.h
+  $(srcdir)/aes.h $(srcdir)/aesopt.h \
+  $(srcdir)/aestab.c $(srcdir)/uitypes.h
 aeskey.so aeskey.po $(OUTPRE)aeskey.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
-  $(srcdir)/../../builtin/aes/aes.h $(srcdir)/../../builtin/aes/aeskey.c \
-  $(srcdir)/../../builtin/aes/aesopt.h $(srcdir)/../../builtin/aes/uitypes.h
+  $(srcdir)/aes.h $(srcdir)/aeskey.c \
+  $(srcdir)/aesopt.h $(srcdir)/uitypes.h
 aes_s2k.so aes_s2k.po $(OUTPRE)aes_s2k.$(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 \
@@ -20,5 +20,5 @@ aes_s2k.so aes_s2k.po $(OUTPRE)aes_s2k.$(OBJEXT): $(BUILDTOP)/include/autoconf.h
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/aes/aes_s2k.c \
-  $(srcdir)/../../builtin/aes/aes_s2k.h $(srcdir)/../../krb/dk/dk.h
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/aes_s2k.c \
+  $(srcdir)/aes_s2k.h $(srcdir)/../../krb/dk/dk.h
index 6b54f494b91d5337162871b0e47f38ad3c6612e9..b1a9687ec9cf771a127d7a5f4dff2002e25fee3a 100644 (file)
@@ -2,7 +2,7 @@ thisconfigdir=../../../..
 myfulldir=lib/crypto/builtin/arcfour
 mydir=lib/crypto/builtin/arcfour
 BUILDTOP=$(REL)..$(S)..$(S)..$(S)..
-LOCALINCLUDES = -I$(srcdir)/.. -I$(srcdir)/../../@CRYPTO_IMPL@/md4  -I$(srcdir)/../../krb
+LOCALINCLUDES = -I$(srcdir)/.. -I$(srcdir)/../md4  -I$(srcdir)/../../krb
 DEFS=
 
 ##DOS##BUILDTOP = ..\..\..\..
@@ -12,22 +12,20 @@ DEFS=
 PROG_LIBPATH=-L$(TOPLIBD)
 PROG_RPATH=$(KRB5_LIBDIR)
 
-CIMPL = @CRYPTO_IMPL@/arcfour
-
 STLIBOBJS=\
-       ../../$(CIMPL)/arcfour.o        \
-       ../../$(CIMPL)/arcfour_aead.o   \
-       ../../$(CIMPL)/arcfour_s2k.o
+       arcfour.o       \
+       arcfour_aead.o  \
+       arcfour_s2k.o
 
 OBJS=\
-       $(OUTPRE)../../$(CIMPL)/arcfour.$(OBJEXT)       \
-       $(OUTPRE)../../$(CIMPL)/arcfour_aead.$(OBJEXT)  \
-       $(OUTPRE)../../$(CIMPL)/arcfour_s2k.$(OBJEXT)
+       $(OUTPRE)arcfour.$(OBJEXT)      \
+       $(OUTPRE)arcfour_aead.$(OBJEXT) \
+       $(OUTPRE)arcfour_s2k.$(OBJEXT)
 
 SRCS=\
-       $(srcdir)/../../$(CIMPL)/arcfour.c      \
-       $(srcdir)/../../$(CIMPL)/arcfour_aead.c\
-       $(srcdir)/../../$(CIMPL)/arcfour_s2k.c
+       $(srcdir)/arcfour.c     \
+       $(srcdir)/arcfour_aead.c\
+       $(srcdir)/arcfour_s2k.c
 
 ##DOS##LIBOBJS = $(OBJS)
 
index 2179fcb162ce03272cb0a7ae51ccc04939d2cb25..13567912eae6cfb683fb4ece805e735cfe48a948 100644 (file)
@@ -10,8 +10,8 @@ arcfour.so arcfour.po $(OUTPRE)arcfour.$(OBJEXT): $(BUILDTOP)/include/autoconf.h
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/arcfour/arcfour-int.h \
-  $(srcdir)/../../builtin/arcfour/arcfour.c $(srcdir)/../../builtin/arcfour/arcfour.h \
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/arcfour-int.h \
+  $(srcdir)/arcfour.c $(srcdir)/arcfour.h \
   $(srcdir)/../hash_provider/hash_provider.h
 arcfour_aead.so arcfour_aead.po $(OUTPRE)arcfour_aead.$(OBJEXT): \
   $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \
@@ -23,8 +23,8 @@ arcfour_aead.so arcfour_aead.po $(OUTPRE)arcfour_aead.$(OBJEXT): \
   $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/authdata_plugin.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/arcfour/arcfour-int.h $(srcdir)/../../builtin/arcfour/arcfour.h \
-  $(srcdir)/../../builtin/arcfour/arcfour_aead.c $(srcdir)/../../krb/aead.h \
+  $(srcdir)/arcfour-int.h $(srcdir)/arcfour.h \
+  $(srcdir)/arcfour_aead.c $(srcdir)/../../krb/aead.h \
   $(srcdir)/../../krb/cksumtypes.h
 arcfour_s2k.so arcfour_s2k.po $(OUTPRE)arcfour_s2k.$(OBJEXT): \
   $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \
@@ -36,6 +36,7 @@ arcfour_s2k.so arcfour_s2k.po $(OUTPRE)arcfour_s2k.$(OBJEXT): \
   $(SRCTOP)/include/k5-utf8.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/arcfour/arcfour-int.h \
-  $(srcdir)/../../builtin/arcfour/arcfour.h $(srcdir)/../../builtin/arcfour/arcfour_s2k.c \
-  $(srcdir)/../../builtin/md4/rsa-md4.h
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/arcfour-int.h \
+  $(srcdir)/arcfour.h $(srcdir)/arcfour_s2k.c \
+  $(srcdir)/../md4/rsa-md4.h
+
index f8bef28d0ed34e6052e4f397a98f9eb3698bcca0..2552b78d62c348f55b64d3d1f37945e5a37396f6 100644 (file)
@@ -10,7 +10,7 @@ hmac.so hmac.po $(OUTPRE)hmac.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/hmac.c \
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/hmac.c \
   $(srcdir)/../krb/aead.h $(srcdir)/../krb/cksumtypes.h
 pbkdf2.so pbkdf2.po $(OUTPRE)pbkdf2.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(BUILDTOP)/include/krb5/krb5.h $(BUILDTOP)/include/osconf.h \
@@ -21,5 +21,5 @@ pbkdf2.so pbkdf2.po $(OUTPRE)pbkdf2.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/hash_provider/hash_provider.h \
-  $(srcdir)/../builtin/pbkdf2.c
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/hash_provider/hash_provider.h \
+  $(srcdir)/pbkdf2.c
index d17d9d21ab741dcacfa2fdb0026a21501e006c6a..bfe48e83f9b5d89d2eb63649a89035ef0c29ca0b 100644 (file)
@@ -13,50 +13,49 @@ RUN_SETUP = @KRB5_RUN_ENV@
 PROG_LIBPATH=-L$(TOPLIBD)
 PROG_RPATH=$(KRB5_LIBDIR)
 
-CIMPL = @CRYPTO_IMPL@/des
 
 STLIBOBJS=\
-       ../../$(CIMPL)/afsstring2key.o  \
-       ../../$(CIMPL)/d3_cbc.o \
-       ../../$(CIMPL)/d3_aead.o        \
-       ../../$(CIMPL)/d3_kysched.o     \
-       ../../$(CIMPL)/f_aead.o         \
-       ../../$(CIMPL)/f_cbc.o  \
-       ../../$(CIMPL)/f_cksum.o        \
-       ../../$(CIMPL)/f_parity.o       \
-       ../../$(CIMPL)/f_sched.o        \
-       ../../$(CIMPL)/f_tables.o       \
-       ../../$(CIMPL)/key_sched.o      \
-       ../../$(CIMPL)/string2key.o     \
-       ../../$(CIMPL)/weak_key.o
-
-OBJS=  $(OUTPRE)../../$(CIMPL)/afsstring2key.$(OBJEXT) \
-       $(OUTPRE)../../$(CIMPL)/d3_cbc.$(OBJEXT)        \
-       $(OUTPRE)../../$(CIMPL)/d3_aead.$(OBJEXT)       \
-       $(OUTPRE)../../$(CIMPL)/d3_kysched.$(OBJEXT)    \
-       $(OUTPRE)../../$(CIMPL)/f_aead.$(OBJEXT)        \
-       $(OUTPRE)../../$(CIMPL)/f_cbc.$(OBJEXT)         \
-       $(OUTPRE)../../$(CIMPL)/f_cksum.$(OBJEXT)       \
-       $(OUTPRE)../../$(CIMPL)/f_parity.$(OBJEXT)      \
-       $(OUTPRE)../../$(CIMPL)/f_sched.$(OBJEXT)       \
-       $(OUTPRE)../../$(CIMPL)/f_tables.$(OBJEXT)      \
-       $(OUTPRE)../../$(CIMPL)/key_sched.$(OBJEXT)     \
-       $(OUTPRE)../../$(CIMPL)/string2key.$(OBJEXT)    \
-       $(OUTPRE)../../$(CIMPL)/weak_key.$(OBJEXT)
-
-SRCS=  $(srcdir)/../../$(CIMPL)/afsstring2key.c        \
-       $(srcdir)/../../$(CIMPL)/d3_cbc.c       \
-       $(srcdir)/../../$(CIMPL)/d3_aead.c      \
-       $(srcdir)/../../$(CIMPL)/d3_kysched.c   \
-       $(srcdir)/../../$(CIMPL)/f_aead.c       \
-       $(srcdir)/../../$(CIMPL)/f_cbc.c        \
-       $(srcdir)/../../$(CIMPL)/f_cksum.c      \
-       $(srcdir)/../../$(CIMPL)/f_parity.c     \
-       $(srcdir)/../../$(CIMPL)/f_sched.c      \
-       $(srcdir)/../../$(CIMPL)/f_tables.c     \
-       $(srcdir)/../../$(CIMPL)/key_sched.c    \
-       $(srcdir)/../../$(CIMPL)/weak_key.c     \
-       $(srcdir)/../../$(CIMPL)/string2key.c
+       afsstring2key.o \
+       d3_cbc.o        \
+       d3_aead.o       \
+       d3_kysched.o    \
+       f_aead.o        \
+       f_cbc.o         \
+       f_cksum.o       \
+       f_parity.o      \
+       f_sched.o       \
+       f_tables.o      \
+       key_sched.o     \
+       string2key.o    \
+       weak_key.o
+
+OBJS=  $(OUTPRE)afsstring2key.$(OBJEXT)        \
+       $(OUTPRE)d3_cbc.$(OBJEXT)       \
+       $(OUTPRE)d3_aead.$(OBJEXT)      \
+       $(OUTPRE)d3_kysched.$(OBJEXT)   \
+       $(OUTPRE)f_aead.$(OBJEXT)       \
+       $(OUTPRE)f_cbc.$(OBJEXT)        \
+       $(OUTPRE)f_cksum.$(OBJEXT)      \
+       $(OUTPRE)f_parity.$(OBJEXT)     \
+       $(OUTPRE)f_sched.$(OBJEXT)      \
+       $(OUTPRE)f_tables.$(OBJEXT)     \
+       $(OUTPRE)key_sched.$(OBJEXT)    \
+       $(OUTPRE)string2key.$(OBJEXT)   \
+       $(OUTPRE)weak_key.$(OBJEXT)
+
+SRCS=  $(srcdir)/afsstring2key.c       \
+       $(srcdir)/d3_cbc.c      \
+       $(srcdir)/d3_aead.c     \
+       $(srcdir)/d3_kysched.c  \
+       $(srcdir)/f_aead.c      \
+       $(srcdir)/f_cbc.c       \
+       $(srcdir)/f_cksum.c     \
+       $(srcdir)/f_parity.c    \
+       $(srcdir)/f_sched.c     \
+       $(srcdir)/f_tables.c    \
+       $(srcdir)/key_sched.c   \
+       $(srcdir)/weak_key.c    \
+       $(srcdir)/string2key.c
 
 EXTRADEPSRCS = $(SRCDIR)destest.c
 
@@ -66,13 +65,29 @@ TOBJS = $(OUTPRE)key_sched.$(OBJEXT) $(OUTPRE)f_sched.$(OBJEXT) \
        $(OUTPRE)f_cbc.$(OBJEXT) $(OUTPRE)f_tables.$(OBJEXT) \
        $(OUTPRE)f_cksum.$(OBJEXT)
 
+verify$(EXEEXT): t_verify.$(OBJEXT) $(TOBJS) f_parity.$(OBJEXT) \
+       $(COM_ERR_DEPLIB) $(SUPPORT_DEPLIB)
+       $(CC_LINK) -o $@ t_verify.$(OBJEXT) $(TOBJS) f_parity.$(OBJEXT) \
+               -lcom_err $(SUPPORT_LIB)
+
 destest$(EXEEXT): destest.$(OBJEXT) $(TOBJS) $(SUPPORT_DEPLIB)
        $(CC_LINK) -o $@ destest.$(OBJEXT) $(TOBJS) $(SUPPORT_LIB)
 
 all-unix:: all-libobjs
 
-check-unix:: destest
+TAFSS2KOBJS =                                                     \
+       t_afss2k.$(OBJEXT) $(TOBJS)                                  \
+       afsstring2key.$(OBJEXT) f_parity.$(OBJEXT) weak_key.$(OBJEXT)
+
+t_afss2k$(EXEEXT): $(TAFSS2KOBJS) $(COM_ERR_DEPLIB) $(SUPPORT_DEPLIB)
+       $(CC_LINK) -o $@ $(TAFSS2KOBJS) -lcom_err $(SUPPORT_LIB)
+
+check-unix:: verify destest t_afss2k
+       $(RUN_SETUP) $(VALGRIND) ./verify -z
+       $(RUN_SETUP) $(VALGRIND) ./verify -m
+       $(RUN_SETUP) $(VALGRIND) ./verify
        $(RUN_SETUP) $(VALGRIND) ./destest < $(srcdir)/keytest.data
+       $(RUN_SETUP) $(VALGRIND) ./t_afss2k
 
 includes:: depend
 
@@ -81,7 +96,8 @@ depend:: $(SRCS)
 check-windows::
 
 clean::
-       $(RM) destest.$(OBJEXT) destest$(EXEEXT)
+       $(RM) destest.$(OBJEXT) destest$(EXEEXT) \
+       t_verify.$(OBJEXT) t_afss2k.$(OBJEXT) t_afss2k$(EXEEXT)
 
 clean-unix:: clean-libobjs
 
index 4d91187de49d86173d2969eff512d8fe76f2bf50..ed127e9a1708cd87395e73cf65348b5ebcbfae48 100644 (file)
@@ -11,7 +11,7 @@ afsstring2key.so afsstring2key.po $(OUTPRE)afsstring2key.$(OBJEXT): \
   $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/authdata_plugin.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/des/afsstring2key.c $(srcdir)/../../builtin/des/des_int.h
+  $(srcdir)/afsstring2key.c $(srcdir)/des_int.h
 d3_cbc.so d3_cbc.po $(OUTPRE)d3_cbc.$(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 \
@@ -21,8 +21,8 @@ d3_cbc.so d3_cbc.po $(OUTPRE)d3_cbc.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/des/d3_cbc.c \
-  $(srcdir)/../../builtin/des/des_int.h $(srcdir)/../../builtin/des/f_tables.h
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/d3_cbc.c \
+  $(srcdir)/des_int.h $(srcdir)/f_tables.h
 d3_aead.so d3_aead.po $(OUTPRE)d3_aead.$(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 \
@@ -32,8 +32,8 @@ d3_aead.so d3_aead.po $(OUTPRE)d3_aead.$(OBJEXT): $(BUILDTOP)/include/autoconf.h
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/des/d3_aead.c \
-  $(srcdir)/../../builtin/des/des_int.h $(srcdir)/../../builtin/des/f_tables.h \
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/d3_aead.c \
+  $(srcdir)/des_int.h $(srcdir)/f_tables.h \
   $(srcdir)/../../krb/aead.h $(srcdir)/../../krb/cksumtypes.h
 d3_kysched.so d3_kysched.po $(OUTPRE)d3_kysched.$(OBJEXT): \
   $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \
@@ -45,7 +45,7 @@ d3_kysched.so d3_kysched.po $(OUTPRE)d3_kysched.$(OBJEXT): \
   $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/authdata_plugin.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/des/d3_kysched.c $(srcdir)/../../builtin/des/des_int.h
+  $(srcdir)/d3_kysched.c $(srcdir)/des_int.h
 f_aead.so f_aead.po $(OUTPRE)f_aead.$(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 \
@@ -55,8 +55,8 @@ f_aead.so f_aead.po $(OUTPRE)f_aead.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/des/des_int.h \
-  $(srcdir)/../../builtin/des/f_aead.c $(srcdir)/../../builtin/des/f_tables.h \
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/des_int.h \
+  $(srcdir)/f_aead.c $(srcdir)/f_tables.h \
   $(srcdir)/../../krb/aead.h $(srcdir)/../../krb/cksumtypes.h
 f_cbc.so f_cbc.po $(OUTPRE)f_cbc.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(BUILDTOP)/include/krb5/krb5.h $(BUILDTOP)/include/osconf.h \
@@ -67,8 +67,8 @@ f_cbc.so f_cbc.po $(OUTPRE)f_cbc.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/des/des_int.h \
-  $(srcdir)/../../builtin/des/f_cbc.c $(srcdir)/../../builtin/des/f_tables.h
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/des_int.h \
+  $(srcdir)/f_cbc.c $(srcdir)/f_tables.h
 f_cksum.so f_cksum.po $(OUTPRE)f_cksum.$(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 \
@@ -78,8 +78,8 @@ f_cksum.so f_cksum.po $(OUTPRE)f_cksum.$(OBJEXT): $(BUILDTOP)/include/autoconf.h
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/des/des_int.h \
-  $(srcdir)/../../builtin/des/f_cksum.c $(srcdir)/../../builtin/des/f_tables.h
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/des_int.h \
+  $(srcdir)/f_cksum.c $(srcdir)/f_tables.h
 f_parity.so f_parity.po $(OUTPRE)f_parity.$(OBJEXT): \
   $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \
   $(BUILDTOP)/include/osconf.h $(BUILDTOP)/include/profile.h \
@@ -90,7 +90,7 @@ f_parity.so f_parity.po $(OUTPRE)f_parity.$(OBJEXT): \
   $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/authdata_plugin.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/des/des_int.h $(srcdir)/../../builtin/des/f_parity.c
+  $(srcdir)/des_int.h $(srcdir)/f_parity.c
 f_sched.so f_sched.po $(OUTPRE)f_sched.$(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 \
@@ -100,8 +100,8 @@ f_sched.so f_sched.po $(OUTPRE)f_sched.$(OBJEXT): $(BUILDTOP)/include/autoconf.h
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/des/des_int.h \
-  $(srcdir)/../../builtin/des/f_sched.c
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/des_int.h \
+  $(srcdir)/f_sched.c
 f_tables.so f_tables.po $(OUTPRE)f_tables.$(OBJEXT): \
   $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \
   $(BUILDTOP)/include/osconf.h $(BUILDTOP)/include/profile.h \
@@ -112,8 +112,8 @@ f_tables.so f_tables.po $(OUTPRE)f_tables.$(OBJEXT): \
   $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/authdata_plugin.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/des/des_int.h $(srcdir)/../../builtin/des/f_tables.c \
-  $(srcdir)/../../builtin/des/f_tables.h
+  $(srcdir)/des_int.h $(srcdir)/f_tables.c \
+  $(srcdir)/f_tables.h
 key_sched.so key_sched.po $(OUTPRE)key_sched.$(OBJEXT): \
   $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \
   $(BUILDTOP)/include/osconf.h $(BUILDTOP)/include/profile.h \
@@ -124,7 +124,7 @@ key_sched.so key_sched.po $(OUTPRE)key_sched.$(OBJEXT): \
   $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/authdata_plugin.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/des/des_int.h $(srcdir)/../../builtin/des/key_sched.c
+  $(srcdir)/des_int.h $(srcdir)/key_sched.c
 weak_key.so weak_key.po $(OUTPRE)weak_key.$(OBJEXT): \
   $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \
   $(BUILDTOP)/include/osconf.h $(BUILDTOP)/include/profile.h \
@@ -135,7 +135,7 @@ weak_key.so weak_key.po $(OUTPRE)weak_key.$(OBJEXT): \
   $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/authdata_plugin.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/des/des_int.h $(srcdir)/../../builtin/des/weak_key.c
+  $(srcdir)/des_int.h $(srcdir)/weak_key.c
 string2key.so string2key.po $(OUTPRE)string2key.$(OBJEXT): \
   $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \
   $(BUILDTOP)/include/osconf.h $(BUILDTOP)/include/profile.h \
@@ -146,7 +146,7 @@ string2key.so string2key.po $(OUTPRE)string2key.$(OBJEXT): \
   $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/authdata_plugin.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/des/des_int.h $(srcdir)/../../builtin/des/string2key.c
+  $(srcdir)/des_int.h $(srcdir)/string2key.c
 destest.so destest.po $(OUTPRE)destest.$(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 \
index 712a22524f6ea0bc47ea6ed065e66557c56ad865..14d53174109c2e5c59d46f72c737e8d3157a48b7 100644 (file)
@@ -2,12 +2,12 @@ thisconfigdir=../../../..
 myfulldir=lib/crypto/builtin/enc_provider
 mydir=lib/crypto/builtin/enc_provider
 BUILDTOP=$(REL)..$(S)..$(S)..$(S)..
-LOCALINCLUDES = -I$(srcdir)/../../@CRYPTO_IMPL@/des    \
-               -I$(srcdir)/../../@CRYPTO_IMPL@/arcfour \
-               -I$(srcdir)/../../@CRYPTO_IMPL@/aes     \
+LOCALINCLUDES = -I$(srcdir)/../des     \
+               -I$(srcdir)/../arcfour \
+               -I$(srcdir)/../aes      \
                -I$(srcdir)/../../krb                   \
                -I$(srcdir)/../../krb/rand2key          \
-               -I$(srcdir)/.. -I$(srcdir)/../../@CRYPTO_IMPL@ 
+               -I$(srcdir)/.. -I$(srcdir)/. 
 DEFS=
 
 ##DOS##BUILDTOP = ..\..\..\..
@@ -18,22 +18,22 @@ PROG_LIBPATH=-L$(TOPLIBD)
 PROG_RPATH=$(KRB5_LIBDIR)
 
 STLIBOBJS= \
-       ../../@CRYPTO_IMPL@/enc_provider/des.o  \
-       ../../@CRYPTO_IMPL@/enc_provider/des3.o         \
-       ../../@CRYPTO_IMPL@/enc_provider/rc4.o  \
-       ../../@CRYPTO_IMPL@/enc_provider/aes.o 
+       des.o   \
+       des3.o  \
+       rc4.o   \
+       aes.o 
 
 OBJS= \
-       $(OUTPRE)../../@CRYPTO_IMPL@/enc_provider/des.$(OBJEXT)         \
-       $(OUTPRE)../../@CRYPTO_IMPL@/enc_provider/des3.$(OBJEXT)        \
-       $(OUTPRE)../../@CRYPTO_IMPL@/enc_provider/aes.$(OBJEXT)         \
-       $(OUTPRE)../../@CRYPTO_IMPL@/enc_provider/rc4.$(OBJEXT)
+       $(OUTPRE)des.$(OBJEXT)  \
+       $(OUTPRE)des3.$(OBJEXT)         \
+       $(OUTPRE)aes.$(OBJEXT)  \
+       $(OUTPRE)rc4.$(OBJEXT)
 
 SRCS= \
-       $(srcdir)/../../@CRYPTO_IMPL@/enc_provider/des.c        \
-       $(srcdir)/../../@CRYPTO_IMPL@/enc_provider/des3.c       \
-       $(srcdir)/../../@CRYPTO_IMPL@/enc_provider/aes.c        \
-       $(srcdir)/../../@CRYPTO_IMPL@/enc_provider/rc4.c
+       $(srcdir)/des.c         \
+       $(srcdir)/des3.c        \
+       $(srcdir)/aes.c         \
+       $(srcdir)/rc4.c
 
 ##DOS##LIBOBJS = $(OBJS)
 
index 292aa56f701ef83cc752b8d6cdb0d51a204f3616..08954482b49b8c80537f05dd2a54c153621b7473 100644 (file)
@@ -10,8 +10,8 @@ des.so des.po $(OUTPRE)des.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/des/des_int.h \
-  $(srcdir)/../../builtin/enc_provider/des.c $(srcdir)/../../builtin/enc_provider/enc_provider.h \
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/../des/des_int.h \
+  $(srcdir)/des.c $(srcdir)/enc_provider.h \
   $(srcdir)/../../krb/aead.h $(srcdir)/../../krb/cksumtypes.h \
   $(srcdir)/../../krb/rand2key/rand2key.h
 des3.so des3.po $(OUTPRE)des3.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
@@ -23,8 +23,8 @@ des3.so des3.po $(OUTPRE)des3.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/des/des_int.h \
-  $(srcdir)/../../builtin/enc_provider/des3.c $(srcdir)/../../krb/aead.h \
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/../des/des_int.h \
+  $(srcdir)/des3.c $(srcdir)/../../krb/aead.h \
   $(srcdir)/../../krb/cksumtypes.h $(srcdir)/../../krb/rand2key/rand2key.h
 aes.so aes.po $(OUTPRE)aes.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(BUILDTOP)/include/krb5/krb5.h $(BUILDTOP)/include/osconf.h \
@@ -35,9 +35,9 @@ aes.so aes.po $(OUTPRE)aes.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/aes/aes.h \
-  $(srcdir)/../../builtin/aes/uitypes.h $(srcdir)/../../builtin/enc_provider/aes.c \
-  $(srcdir)/../../builtin/enc_provider/enc_provider.h \
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/../aes/aes.h \
+  $(srcdir)/../aes/uitypes.h $(srcdir)/aes.c \
+  $(srcdir)/enc_provider.h \
   $(srcdir)/../../krb/aead.h $(srcdir)/../../krb/cksumtypes.h \
   $(srcdir)/../../krb/rand2key/rand2key.h
 rc4.so rc4.po $(OUTPRE)rc4.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
@@ -49,7 +49,7 @@ rc4.so rc4.po $(OUTPRE)rc4.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/arcfour/arcfour-int.h \
-  $(srcdir)/../../builtin/arcfour/arcfour.h $(srcdir)/../../builtin/enc_provider/enc_provider.h \
-  $(srcdir)/../../builtin/enc_provider/rc4.c $(srcdir)/../../krb/aead.h \
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/../arcfour/arcfour-int.h \
+  $(srcdir)/../arcfour/arcfour.h $(srcdir)/enc_provider.h \
+  $(srcdir)/rc4.c $(srcdir)/../../krb/aead.h \
   $(srcdir)/../../krb/cksumtypes.h $(srcdir)/../../krb/rand2key/rand2key.h
index a901d1175ef0fcaf873fe96dd84a2b413909ae2a..09bfb5953e054bd5776c4ea6ae6fbea85d88fa87 100644 (file)
@@ -2,8 +2,8 @@ thisconfigdir=../../../..
 myfulldir=lib/crypto/builtin/hash_provider
 mydir=lib/crypto/builtin/hash_provider
 BUILDTOP=$(REL)..$(S)..$(S)..$(S)..
-LOCALINCLUDES = -I$(srcdir)/../../krb/crc32 -I$(srcdir)/../../@CRYPTO_IMPL@/md4 \
-       -I$(srcdir)/../../@CRYPTO_IMPL@/md5 -I$(srcdir)/../../@CRYPTO_IMPL@/sha1
+LOCALINCLUDES = -I$(srcdir)/../../krb/crc32 -I$(srcdir)/../md4 \
+       -I$(srcdir)/../md5 -I$(srcdir)/../sha1
 DEFS=
 
 ##DOS##BUILDTOP = ..\..\..\..
@@ -13,23 +13,21 @@ DEFS=
 PROG_LIBPATH=-L$(TOPLIBD)
 PROG_RPATH=$(KRB5_LIBDIR)
 
-CIMPL = @CRYPTO_IMPL@/hash_provider
-
 STLIBOBJS= \
-       ../../$(CIMPL)/hash_crc32.o     \
-       ../../$(CIMPL)/hash_md4.o       \
-       ../../$(CIMPL)/hash_md5.o       \
-       ../../$(CIMPL)/hash_sha1.o
-
-OBJS=   $(OUTPRE)../../$(CIMPL)/hash_crc32.$(OBJEXT)   \
-       $(OUTPRE)../../$(CIMPL)/hash_md4.$(OBJEXT)      \
-       $(OUTPRE)../../$(CIMPL)/hash_md5.$(OBJEXT)      \
-       $(OUTPRE)../../$(CIMPL)/hash_sha1.$(OBJEXT)
-
-SRCS=  $(srcdir)/../../$(CIMPL)/hash_crc32.c   \
-       $(srcdir)/../../$(CIMPL)/hash_md4.c     \
-       $(srcdir)/../../$(CIMPL)/hash_md5.c     \
-       $(srcdir)/../../$(CIMPL)/hash_sha1.c
+       hash_crc32.o    \
+       hash_md4.o      \
+       hash_md5.o      \
+       hash_sha1.o
+
+OBJS=   $(OUTPRE)hash_crc32.$(OBJEXT)  \
+       $(OUTPRE)hash_md4.$(OBJEXT)     \
+       $(OUTPRE)hash_md5.$(OBJEXT)     \
+       $(OUTPRE)hash_sha1.$(OBJEXT)
+
+SRCS=  $(srcdir)/hash_crc32.c  \
+       $(srcdir)/hash_md4.c    \
+       $(srcdir)/hash_md5.c    \
+       $(srcdir)/hash_sha1.c
 
 ##DOS##LIBOBJS = $(OBJS)
 
index f69f19aa9c676d12f0ffb3fe7c727213b758d926..aae0b98acd198ff41d6fee7f029df0fdaadece89 100644 (file)
@@ -11,8 +11,8 @@ hash_crc32.so hash_crc32.po $(OUTPRE)hash_crc32.$(OBJEXT): \
   $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/authdata_plugin.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/hash_provider/hash_crc32.c \
-  $(srcdir)/../../builtin/hash_provider/hash_provider.h \
+  $(srcdir)/hash_crc32.c \
+  $(srcdir)/hash_provider.h \
   $(srcdir)/../../krb/crc32/crc-32.h
 hash_md4.so hash_md4.po $(OUTPRE)hash_md4.$(OBJEXT): \
   $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \
@@ -24,8 +24,8 @@ hash_md4.so hash_md4.po $(OUTPRE)hash_md4.$(OBJEXT): \
   $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/authdata_plugin.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/hash_provider/hash_md4.c $(srcdir)/../../builtin/hash_provider/hash_provider.h \
-  $(srcdir)/../../builtin/md4/rsa-md4.h
+  $(srcdir)/hash_md4.c $(srcdir)/hash_provider.h \
+  $(srcdir)/../md4/rsa-md4.h
 hash_md5.so hash_md5.po $(OUTPRE)hash_md5.$(OBJEXT): \
   $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \
   $(BUILDTOP)/include/osconf.h $(BUILDTOP)/include/profile.h \
@@ -36,8 +36,8 @@ hash_md5.so hash_md5.po $(OUTPRE)hash_md5.$(OBJEXT): \
   $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/authdata_plugin.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/hash_provider/hash_md5.c $(srcdir)/../../builtin/hash_provider/hash_provider.h \
-  $(srcdir)/../../builtin/md5/rsa-md5.h
+  $(srcdir)/hash_md5.c $(srcdir)/hash_provider.h \
+  $(srcdir)/../md5/rsa-md5.h
 hash_sha1.so hash_sha1.po $(OUTPRE)hash_sha1.$(OBJEXT): \
   $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \
   $(BUILDTOP)/include/osconf.h $(BUILDTOP)/include/profile.h \
@@ -48,5 +48,5 @@ hash_sha1.so hash_sha1.po $(OUTPRE)hash_sha1.$(OBJEXT): \
   $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/authdata_plugin.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/hash_provider/hash_provider.h \
-  $(srcdir)/../../builtin/hash_provider/hash_sha1.c $(srcdir)/../../builtin/sha1/shs.h
+  $(srcdir)/hash_provider.h \
+  $(srcdir)/hash_sha1.c $(srcdir)/../sha1/shs.h
index 480906bc6bb10d6f31c020041f17b031c475cbdd..78dd0534b50f468c0906b561ad9708757020913c 100644 (file)
@@ -12,11 +12,11 @@ DEFS=
 PROG_LIBPATH=-L$(TOPLIBD)
 PROG_RPATH=$(KRB5_LIBDIR)
 
-STLIBOBJS= ../../@CRYPTO_IMPL@/md4/md4.o
+STLIBOBJS= md4.o
 
-OBJS= $(OUTPRE)../../@CRYPTO_IMPL@/md4/md4.$(OBJEXT) 
+OBJS= $(OUTPRE)md4.$(OBJEXT) 
 
-SRCS= $(srcdir)/../../@CRYPTO_IMPL@/md4/md4.c
+SRCS= $(srcdir)/md4.c
 
 ##DOS##LIBOBJS = $(OBJS)
 
index 04c312f7d46b61c19c887f5586662a23dd6bfd8b..9381aa76f43cf2f0f2b34bcee48f7ea5cf8750fb 100644 (file)
@@ -10,5 +10,5 @@ md4.so md4.po $(OUTPRE)md4.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/md4/md4.c \
-  $(srcdir)/../../builtin/md4/rsa-md4.h
+  $(SRCTOP)/include/socket-utils.h md4.c \
+  rsa-md4.h
index 929291906587b537355f7e381ef7c6accb412e58..6da43749d472bf13c907c87aaa1316530b8a633f 100644 (file)
@@ -11,11 +11,11 @@ DEFS=
 PROG_LIBPATH=-L$(TOPLIBD)
 PROG_RPATH=$(KRB5_LIBDIR)
 
-STLIBOBJS= ../../@CRYPTO_IMPL@/md5/md5.o
+STLIBOBJS= md5.o
 
-OBJS= $(OUTPRE)../../@CRYPTO_IMPL@/md5/md5.$(OBJEXT) 
+OBJS= $(OUTPRE)md5.$(OBJEXT) 
 
-SRCS= $(srcdir)/../../@CRYPTO_IMPL@/md5/md5.c
+SRCS= $(srcdir)/md5.c
 
 ##DOS##LIBOBJS = $(OBJS)
 
index 501a7b6a441e552c2223a24a39b45eda6771552c..abfc54912504cde4ccf7906de412664b7f6f6b60 100644 (file)
@@ -10,5 +10,5 @@ md5.so md5.po $(OUTPRE)md5.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/md5/md5.c \
-  $(srcdir)/../../builtin/md5/rsa-md5.h
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/md5.c \
+  $(srcdir)/rsa-md5.h
index 7610881881f40acfa05d2ccac335f425191d6163..c93cb8529c0e6007b2ad71cecc5a54a591b095e1 100644 (file)
@@ -11,11 +11,11 @@ DEFS=
 PROG_LIBPATH=-L$(TOPLIBD)
 PROG_RPATH=$(KRB5_LIBDIR)
 
-STLIBOBJS= ../../@CRYPTO_IMPL@/sha1/shs.o
+STLIBOBJS= shs.o
 
-OBJS= $(OUTPRE)../../@CRYPTO_IMPL@/sha1/shs.$(OBJEXT) 
+OBJS= $(OUTPRE)shs.$(OBJEXT) 
 
-SRCS= $(srcdir)/../../@CRYPTO_IMPL@/sha1/shs.c
+SRCS= $(srcdir)/shs.c
 
 ##DOS##LIBOBJS = $(OBJS)
 
@@ -24,12 +24,25 @@ all-unix:: all-libobjs
 includes:: depend
 
 depend:: $(SRCS)
+t_shs: t_shs.o shs.o $(SUPPORT_DEPLIB)
+       $(CC_LINK) -o t_shs t_shs.o shs.o $(SUPPORT_LIB)
 
-check-unix:: 
+$(OUTPRE)t_shs.exe: $(OUTPRE)t_shs.obj $(OUTPRE)shs.obj
+       link -out:$@ $**
 
-check-windows:: 
+t_shs3: t_shs3.o shs.o $(SUPPORT_DEPLIB)
+       $(CC_LINK) -o t_shs3 t_shs3.o shs.o $(SUPPORT_LIB)
 
-clean:: 
+check-unix:: t_shs t_shs3
+       $(RUN_SETUP) $(VALGRIND) $(C)t_shs -x
+       $(RUN_SETUP) $(VALGRIND) $(C)t_shs3
+
+check-windows:: $(OUTPRE)t_shs.exe $(OUTPRE)t_shs3.exe
+       $(OUTPRE)$(C)t_shs.exe -x
+       $(OUTPRE)$(C)t_shs3.exe
+
+clean::
+       $(RM) t_shs$(EXEEXT) t_shs.$(OBJEXT) t_shs3$(EXEEXT) t_shs3.$(OBJEXT)
 
 clean-unix:: clean-libobjs
 
index ee1dc4d9b25aaa70a508394f7e7303e839af6b30..a5e424d7960b23daa428a95a615ffa757d2cf123 100644 (file)
@@ -10,5 +10,5 @@ shs.so shs.po $(OUTPRE)shs.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
   $(SRCTOP)/include/krb5/authdata_plugin.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/sha1/shs.c \
-  $(srcdir)/../../builtin/sha1/shs.h
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/shs.c \
+  $(srcdir)/shs.h
index 7b240d57839a697492066abd0db8137f3fbcb361..fa916d7372dedf29841fd12193bb0981f2efd7fd 100644 (file)
@@ -17,7 +17,6 @@ DEFS=
 
 EXTRADEPSRCS=\
        $(srcdir)/t_nfold.c     \
-       $(srcdir)/t_cf2.c       \
        $(srcdir)/t_encrypt.c   \
        $(srcdir)/t_prf.c       \
        $(srcdir)/t_prng.c      \
@@ -26,13 +25,9 @@ EXTRADEPSRCS=\
        $(srcdir)/t_cts.c       \
        $(srcdir)/vectors.c     \
        $(srcdir)/aes-test.c    \
-       $(srcdir)/t_afss2k.c    \
        $(srcdir)/t_cksum.c     \
        $(srcdir)/t_crc.c       \
        $(srcdir)/t_mddriver.c  \
-       $(srcdir)/t_shs3.c      \
-       $(srcdir)/t_shs.c       \
-       $(srcdir)/t_verify.c    \
        $(srcdir)/t_kperf.c     \
        $(srcdir)/ytest.c       
 
@@ -44,11 +39,11 @@ EXTRADEPSRCS=\
 
 ##DOS##LIBOBJS = $(OBJS)
 
-check-unix:: t_nfold t_encrypt t_prf t_prng t_hmac t_cf2 \
+check-unix:: t_nfold t_encrypt t_prf t_prng t_hmac \
                t_cksum4 t_cksum5 \
-               aes-test verify t_afss2k \
+               aes-test  \
                t_mddriver4 t_mddriver \
-               t_shs t_shs3 t_crc t_cts
+               t_crc t_cts
        $(RUN_SETUP) $(VALGRIND) ./t_nfold
        $(RUN_SETUP) $(VALGRIND) ./t_encrypt
        $(RUN_SETUP) $(VALGRIND) ./t_prng <$(srcdir)/t_prng.seed >t_prng.output && \
@@ -56,23 +51,16 @@ check-unix:: t_nfold t_encrypt t_prf t_prng t_hmac t_cf2 \
        $(RUN_SETUP) $(VALGRIND) ./t_hmac
        $(RUN_SETUP) $(VALGRIND) ./t_prf <$(srcdir)/t_prf.in >t_prf.output
        diff t_prf.output $(srcdir)/t_prf.expected
-       $(RUN_SETUP) $(VALGRIND) ./t_cf2 <$(srcdir)/t_cf2.in >t_cf2.output
-       diff t_cf2.output $(srcdir)/t_cf2.expected
        $(RUN_SETUP) $(VALGRIND) ./t_cksum4 "this is a test"
        $(RUN_SETUP) $(VALGRIND) ./t_cksum5 "this is a test"
        $(RUN_SETUP) $(VALGRIND) ./t_crc
+       $(RUN_SETUP) $(VALGRIND) ./t_cts
        $(RUN_SETUP) $(VALGRIND) ./aes-test -k > vk.txt
        cmp vk.txt $(srcdir)/expect-vk.txt
        $(RUN_SETUP) $(VALGRIND) ./aes-test > vt.txt
        cmp vt.txt $(srcdir)/expect-vt.txt
-       $(RUN_SETUP) $(VALGRIND) ./verify -z
-       $(RUN_SETUP) $(VALGRIND) ./verify -m
-       $(RUN_SETUP) $(VALGRIND) ./verify
-       $(RUN_SETUP) $(VALGRIND) ./t_afss2k
        $(RUN_SETUP) $(VALGRIND) $(C)t_mddriver4 -x
        $(RUN_SETUP) $(VALGRIND) $(C)t_mddriver -x
-       $(RUN_SETUP) $(VALGRIND) $(C)t_shs -x
-       $(RUN_SETUP) $(VALGRIND) $(C)t_shs3
 
 
 
@@ -91,10 +79,6 @@ t_encrypt$(EXEEXT): t_encrypt.$(OBJEXT) $(CRYPTO_DEPLIB) $(SUPPORT_DEPLIB)
 t_prf$(EXEEXT): t_prf.$(OBJEXT) $(SUPPORT_DEPLIB)
        $(CC_LINK) -o $@ t_prf.$(OBJEXT)  -lkrb5 -lk5crypto -lcom_err $(SUPPORT_LIB)
 
-t_cf2$(EXEEXT): t_cf2.$(OBJEXT) $(SUPPORT_DEPLIB)
-       $(CC_LINK) -o $@ t_cf2.$(OBJEXT)  -lkrb5 -lk5crypto -lcom_err $(SUPPORT_LIB)
-
-
 t_prng$(EXEEXT): t_prng.$(OBJEXT) $(SUPPORT_DEPLIB)
        $(CC_LINK) -o $@ t_prng.$(OBJEXT)  -lk5crypto -lcom_err $(SUPPORT_LIB)
 
@@ -129,12 +113,6 @@ t_crc: t_crc.o $(CRYPTO_DEPLIB) $(SUPPORT_DEPLIB)
 aes-test: aes-test.$(OBJEXT) $(CRYPTO_DEPLIB)
        $(CC_LINK) -o aes-test aes-test.$(OBJEXT) $(K5CRYPTO_LIB) $(COM_ERR_LIB) $(SUPPORT_LIB)
 
-verify$(EXEEXT): t_verify.$(OBJEXT) $(COM_ERR_DEPLIB) $(SUPPORT_DEPLIB)
-       $(CC_LINK) -o $@ t_verify.$(OBJEXT) -lcom_err $(SUPPORT_LIB) -lk5crypto
-
-t_afss2k: t_afss2k.$(OBJEXT) $(COM_ERR_DEPLIB) $(SUPPORT_DEPLIB) $(CRYPTO_DEPLIB)
-       $(CC_LINK) -o $@ t_afss2k.$(OBJEXT) -lcom_err $(SUPPORT_LIB) -lk5crypto
-
 t_mddriver4.o: $(srcdir)/t_mddriver.c
        $(CC) -DMD=4 $(ALL_CFLAGS) -o t_mddriver4.o -c $(srcdir)/t_mddriver.c
 
@@ -144,12 +122,6 @@ t_mddriver4: t_mddriver4.o  $(SUPPORT_DEPLIB) $(CRYPTO_DEPLIB)
 t_mddriver: t_mddriver.o  $(SUPPORT_DEPLIB) $(CRYPTO_DEPLIB)
        $(CC_LINK) -o t_mddriver t_mddriver.o -lk5crypto $(SUPPORT_LIB)
 
-t_shs: t_shs.o  $(SUPPORT_DEPLIB) $(CRYPTO_DEPLIB)
-       $(CC_LINK) -o t_shs t_shs.o  $(SUPPORT_LIB) $(CRYPTO_DEPLIB)
-
-t_shs3: t_shs3.o  $(SUPPORT_DEPLIB) $(CRYPTO_DEPLIB)
-       $(CC_LINK) -o t_shs3 t_shs3.o  $(SUPPORT_LIB) $(CRYPTO_DEPLIB)
-
 t_kperf: t_kperf.o $(SUPPORT_DEPLIB) $(CRYPTO_DEPLIB)
        $(CC_LINK) -o t_kperf t_kperf.o  $(SUPPORT_LIB) $(CRYPTO_DEPLIB)
 
@@ -161,19 +133,16 @@ ytest: ytest.o shs.o $(SUPPORT_DEPLIB) $(CRYPTO_DEPLIB)
 clean::
        $(RM) t_nfold.o t_nfold nfold.$(OBJEXT) t_encrypt t_encrypt.o \
                t_prng.o t_prng t_hmac.o t_hmac t_pkcs5.o t_pkcs5 pbkdf2.o \
-               t_prf t_prf.o t_cf2 t_cf2.o \
+               t_prf t_prf.o \
                aes-test.o aes-test vt.txt vk.txt kresults.out \
-               t_afss2k.o t_afss2k t_cksum.o t_cksum \
+               t_cksum.o t_cksum \
                t_crc.o t_crc t_cts.o t_cts \
                t_mddriver4.o t_mddriver4 t_mddriver.o t_mddriver \
                t_cksum4 t_cksum4.o t_cksum5 t_cksum5.o \
-               t_shs3 t_shs3.o t_shs t_shs.o verify t_verify.o  \
-               t_mddriver$(EXEEXT) $(OUTPRE)t_mddriver.$(OBJEXT) \
-               t_shs$(EXEEXT) t_shs.$(OBJEXT) t_shs3$(EXEEXT) t_shs3.$(OBJEXT)
+               t_mddriver$(EXEEXT) $(OUTPRE)t_mddriver.$(OBJEXT)
 
        -$(RM) t_prng.output
        -$(RM) t_prf.output
-       -$(RM) t_cf2.output
 
 @lib_frag@
 @libobj_frag@
diff --git a/src/lib/crypto/crypto_tests/t_shs.c b/src/lib/crypto/crypto_tests/t_shs.c
deleted file mode 100644 (file)
index adcb092..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-/****************************************************************************
-*                                                                           *
-*                               SHS Test Code                               *
-*                                                                           *
-****************************************************************************/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <time.h>
-#include "shs.h"
-
-/* Test the SHS implementation */
-
-#ifdef NEW_SHS
-
-static SHS_LONG shsTestResults[][ 5 ] = {
-    { 0xA9993E36L, 0x4706816AL, 0xBA3E2571L, 0x7850C26CL, 0x9CD0D89DL, },
-    { 0x84983E44L, 0x1C3BD26EL, 0xBAAE4AA1L, 0xF95129E5L, 0xE54670F1L, },
-    { 0x34AA973CL, 0xD4C4DAA4L, 0xF61EEB2BL, 0xDBAD2731L, 0x6534016FL, }
-    };
-
-#else
-
-static SHS_LONG shsTestResults[][ 5 ] = {
-    { 0x0164B8A9L, 0x14CD2A5EL, 0x74C4F7FFL, 0x082C4D97L, 0xF1EDF880L },
-    { 0xD2516EE1L, 0xACFA5BAFL, 0x33DFC1C4L, 0x71E43844L, 0x9EF134C8L },
-    { 0x3232AFFAL, 0x48628A26L, 0x653B5AAAL, 0x44541FD9L, 0x0D690603L }
-    };
-#endif /* NEW_SHS */
-
-static int compareSHSresults(shsInfo, shsTestLevel)
-SHS_INFO *shsInfo;
-int shsTestLevel;
-{
-    int i, fail = 0;
-
-    /* Compare the returned digest and required values */
-    for( i = 0; i < 5; i++ )
-        if( shsInfo->digest[ i ] != shsTestResults[ shsTestLevel ][ i ] )
-           fail = 1;
-    if (fail) {
-       printf("\nExpected: ");
-       for (i = 0; i < 5; i++) {
-           printf("%8.8lx ", (unsigned long) shsTestResults[shsTestLevel][i]);
-       }
-       printf("\nGot:      ");
-       for (i = 0; i < 5; i++) {
-           printf("%8.8lx ", (unsigned long) shsInfo->digest[i]);
-       }
-       printf("\n");
-       return( -1 );
-    }
-    return( 0 );
-}
-
-int
-main()
-{
-    SHS_INFO shsInfo;
-    unsigned int i;
-#if 0
-    time_t secondCount;
-    SHS_BYTE data[ 200 ];
-#endif
-
-    /* Make sure we've got the endianness set right.  If the machine is
-       big-endian (up to 64 bits) the following value will be signed,
-       otherwise it will be unsigned.  Unfortunately we can't test for odd
-       things like middle-endianness without knowing the size of the data
-       types */
-
-    /* Test SHS against values given in SHS standards document */
-    printf( "Running SHS test 1 ... " );
-    shsInit( &shsInfo );
-    shsUpdate( &shsInfo, ( SHS_BYTE * ) "abc", 3 );
-    shsFinal( &shsInfo );
-    if( compareSHSresults( &shsInfo, 0 ) == -1 )
-        {
-        putchar( '\n' );
-        puts( "SHS test 1 failed" );
-        exit( -1 );
-        }
-#ifdef NEW_SHS
-    puts( "passed, result= A9993E364706816ABA3E25717850C26C9CD0D89D" );
-#else
-    puts( "passed, result= 0164B8A914CD2A5E74C4F7FF082C4D97F1EDF880" );
-#endif /* NEW_SHS */
-
-    printf( "Running SHS test 2 ... " );
-    shsInit( &shsInfo );
-    shsUpdate( &shsInfo, ( SHS_BYTE * ) "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", 56 );
-    shsFinal( &shsInfo );
-    if( compareSHSresults( &shsInfo, 1 ) == -1 )
-        {
-        putchar( '\n' );
-        puts( "SHS test 2 failed" );
-        exit( -1 );
-        }
-#ifdef NEW_SHS
-    puts( "passed, result= 84983E441C3BD26EBAAE4AA1F95129E5E54670F1" );
-#else
-    puts( "passed, result= D2516EE1ACFA5BAF33DFC1C471E438449EF134C8" );
-#endif /* NEW_SHS */
-
-    printf( "Running SHS test 3 ... " );
-    shsInit( &shsInfo );
-    for( i = 0; i < 15625; i++ )
-        shsUpdate( &shsInfo, ( SHS_BYTE * ) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", 64 );
-    shsFinal( &shsInfo );
-    if( compareSHSresults( &shsInfo, 2 ) == -1 )
-        {
-        putchar( '\n' );
-        puts( "SHS test 3 failed" );
-        exit( -1 );
-        }
-#ifdef NEW_SHS
-    puts( "passed, result= 34AA973CD4C4DAA4F61EEB2BDBAD27316534016F" );
-#else
-    puts( "passed, result= 3232AFFA48628A26653B5AAA44541FD90D690603" );
-#endif /* NEW_SHS */
-
-#if 0
-    printf( "\nTesting speed for 100MB data... " );
-    shsInit( &shsInfo );
-    secondCount = time( NULL );
-    for( i = 0; i < 500000U; i++ )
-        shsUpdate( &shsInfo, data, 200 );
-    secondCount = time( NULL ) - secondCount;
-    printf( "done.  Time = %ld seconds, %ld kbytes/second.\n", \
-            secondCount, 100500L / secondCount );
-#endif
-
-    puts( "\nAll SHS tests passed" );
-    exit( 0 );
-}
diff --git a/src/lib/crypto/crypto_tests/t_shs3.c b/src/lib/crypto/crypto_tests/t_shs3.c
deleted file mode 100644 (file)
index 96b36a7..0000000
+++ /dev/null
@@ -1,592 +0,0 @@
-/* test shs code */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <time.h>
-#include "shs.h"
-
-static void process(void);
-static void test1(void);
-static void test2(void);
-static void test3(void);
-static void test4(void);
-static void test5(void);
-static void test6(void);
-static void test7(void);
-
-/* When run on a little-endian CPU we need to perform byte reversal on an
-   array of longwords.  It is possible to make the code endianness-
-   independant by fiddling around with data at the byte level, but this
-   makes for very slow code, so we rely on the user to sort out endianness
-   at compile time */
-
-static void longReverse( SHS_LONG *buffer, int byteCount )
-{
-    SHS_LONG value;
-    static int init = 0;
-    char *cp;
-
-    switch (init) {
-    case 0:
-       init=1;
-       cp = (char *) &init;
-       if (*cp == 1) {
-           init=2;
-           break;
-       }
-       init=1;
-       /* fall through - MSB */
-    case 1:
-       return;
-    }
-
-    byteCount /= sizeof( SHS_LONG );
-    while( byteCount-- ) {
-        value = *buffer;
-        value = ( ( value & 0xFF00FF00L ) >> 8  ) | 
-                ( ( value & 0x00FF00FFL ) << 8 );
-        *buffer++ = ( value << 16 ) | ( value >> 16 );
-    }
-}
-
-int rc;
-int mode;
-int Dflag;
-
-int
-main(argc,argv)
-       char **argv;
-{
-       char *argp;
-
-       while (--argc > 0) if (*(argp = *++argv)=='-')
-       while (*++argp) switch(*argp)
-       {
-       case '1':
-       case '2':
-       case '3':
-       case '4':
-       case '5':
-       case '6':
-       case '7':
-               if (mode) goto Usage;
-               mode = *argp;
-               break;
-       case 'D':
-               if (argc <= 1) goto Usage;
-               --argc;
-               Dflag = atoi(*++argv);
-               break;
-       case '-':
-               break;
-       default:
-               fprintf (stderr,"Bad switch char <%c>\n", *argp);
-       Usage:
-               fprintf(stderr, "Usage: t_shs [-1234567] [-D #]\n");
-               exit(1);
-       }
-       else goto Usage;
-
-       process();
-       exit(rc);
-}
-
-static void process(void)
-{
-       switch(mode)
-       {
-       case '1':
-               test1();
-               break;
-       case '2':
-               test2();
-               break;
-       case '3':
-               test3();
-               break;
-       case '4':
-               test4();
-               break;
-       case '5':
-               test5();
-               break;
-       case '6':
-               test6();
-               break;
-       case '7':
-               test7();
-               break;
-       default:
-               test1();
-               test2();
-               test3();
-               test4();
-               test5();
-               test6();
-               test7();
-       }
-}
-
-#ifndef shsDigest
-static unsigned char *
-shsDigest(si)
-       SHS_INFO *si;
-{
-       longReverse(si->digest, SHS_DIGESTSIZE);
-       return (unsigned char*) si->digest;
-}
-#endif
-
-unsigned char results1[SHS_DIGESTSIZE] = {
-0xa9,0x99,0x3e,0x36,0x47,0x06,0x81,0x6a,0xba,0x3e,
-0x25,0x71,0x78,0x50,0xc2,0x6c,0x9c,0xd0,0xd8,0x9d};
-
-static void test1(void)
-{
-       SHS_INFO si[1];
-       unsigned char digest[SHS_DIGESTSIZE];
-       int failed;
-       int i;
-
-       printf("Running SHS test 1 ...\n");
-       shsInit(si);
-       shsUpdate(si, (SHS_BYTE *) "abc", 3);
-       shsFinal(si);
-       memcpy(digest, shsDigest(si), SHS_DIGESTSIZE);
-       if ((failed = memcmp(digest, results1, SHS_DIGESTSIZE)) != 0)
-       {
-               fprintf(stderr,"SHS test 1 failed!\n");
-               rc = 1;
-       }
-       printf ("%s, results = ", failed ? "Failed" : "Passed");
-       for (i = 0; i < SHS_DIGESTSIZE; ++i)
-               printf("%02x",digest[i]);
-       if (failed)
-       {
-               printf ("\n, expected ");
-               for (i = 0; i < SHS_DIGESTSIZE; ++i)
-                       printf("%02x",results1[i]);
-       }
-       printf("\n");
-}
-
-unsigned char results2[SHS_DIGESTSIZE] = {
-0x84,0x98,0x3e,0x44,0x1c,0x3b,0xd2,0x6e,0xba,0xae,
-0x4a,0xa1,0xf9,0x51,0x29,0xe5,0xe5,0x46,0x70,0xf1};
-
-static void test2(void)
-{
-       SHS_INFO si[1];
-       unsigned char digest[SHS_DIGESTSIZE];
-       int failed;
-       int i;
-
-       printf("Running SHS test 2 ...\n");
-       shsInit(si);
-       shsUpdate(si,
-       (SHS_BYTE *) "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
-               56);
-       shsFinal(si);
-       memcpy(digest, shsDigest(si), SHS_DIGESTSIZE);
-       if ((failed = memcmp(digest, results2, SHS_DIGESTSIZE)) != 0)
-       {
-               fprintf(stderr,"SHS test 2 failed!\n");
-               rc = 1;
-       }
-       printf ("%s, results = ", failed ? "Failed" : "Passed");
-       for (i = 0; i < SHS_DIGESTSIZE; ++i)
-               printf("%02x",digest[i]);
-       if (failed)
-       {
-               printf ("\n, expected ");
-               for (i = 0; i < SHS_DIGESTSIZE; ++i)
-                       printf("%02x",results2[i]);
-       }
-       printf("\n");
-}
-
-unsigned char results3[SHS_DIGESTSIZE] = {
-0x34,0xaa,0x97,0x3c,0xd4,0xc4,0xda,0xa4,0xf6,0x1e,
-0xeb,0x2b,0xdb,0xad,0x27,0x31,0x65,0x34,0x01,0x6f};
-
-static void test3(void)
-{
-       SHS_INFO si[1];
-       unsigned char digest[SHS_DIGESTSIZE];
-       int failed;
-       int i;
-
-       printf("Running SHS test 3 ...\n");
-       shsInit(si);
-       for (i = 0; i < 15625; ++i)
-               shsUpdate(si,
-(SHS_BYTE *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
-                       64);
-       shsFinal(si);
-       memcpy(digest, shsDigest(si), SHS_DIGESTSIZE);
-       if ((failed = memcmp(digest, results3, SHS_DIGESTSIZE)) != 0)
-       {
-               fprintf(stderr,"SHS test 3 failed!\n");
-               rc = 1;
-       }
-       printf ("%s, results = ", failed ? "Failed" : "Passed");
-       for (i = 0; i < SHS_DIGESTSIZE; ++i)
-               printf("%02x",digest[i]);
-       if (failed)
-       {
-               printf ("\n, expected ");
-               for (i = 0; i < SHS_DIGESTSIZE; ++i)
-                       printf("%02x",results3[i]);
-       }
-       printf("\n");
-}
-
-unsigned char randdata[] = {
-0xfe,0x28,0x79,0x25,0xf5,0x03,0xf9,0x1c,0xcd,0x70,0x7b,0xb0,0x42,0x02,0xb8,0x2f,
-0xf3,0x63,0xa2,0x79,0x8e,0x9b,0x33,0xd7,0x2b,0xc4,0xb4,0xd2,0xcb,0x61,0xec,0xbb,
-0x94,0xe1,0x8f,0x53,0x80,0x55,0xd9,0x90,0xb2,0x03,0x58,0xfa,0xa6,0xe5,0x18,0x57,
-0x68,0x04,0x24,0x98,0x41,0x7e,0x84,0xeb,0xc1,0x39,0xbc,0x1d,0xf7,0x4e,0x92,0x72,
-0x1a,0x5b,0xb6,0x99,0x43,0xa5,0x0a,0x45,0x73,0x55,0xfd,0x57,0x83,0x45,0x36,0x5c,
-0xfd,0x39,0x08,0x6e,0xe2,0x01,0x9a,0x8c,0x4e,0x39,0xd2,0x0d,0x5f,0x0e,0x35,0x15,
-0xb9,0xac,0x5f,0xa1,0x8a,0xe6,0xdd,0x6e,0x68,0x9d,0xf6,0x29,0x95,0xf6,0x7d,0x7b,
-0xd9,0x5e,0xf4,0x67,0x25,0xbd,0xee,0xed,0x53,0x60,0xb0,0x47,0xdf,0xef,0xf4,0x41,
-0xbd,0x45,0xcf,0x5c,0x93,0x41,0x87,0x97,0x82,0x39,0x20,0x66,0xb4,0xda,0xcb,0x66,
-0x93,0x02,0x2e,0x7f,0x94,0x4c,0xc7,0x3b,0x2c,0xcf,0xf6,0x99,0x6f,0x13,0xf1,0xc5,
-0x28,0x2b,0xa6,0x6c,0x39,0x26,0x7f,0x76,0x24,0x4a,0x6e,0x01,0x40,0x63,0xf8,0x00,
-0x06,0x23,0x5a,0xaa,0xa6,0x2f,0xd1,0x37,0xc7,0xcc,0x76,0xe9,0x54,0x1e,0x57,0x73,
-0xf5,0x33,0xaa,0x96,0xbe,0x35,0xcd,0x1d,0xd5,0x7d,0xac,0x50,0xd5,0xf8,0x47,0x2d,
-0xd6,0x93,0x5f,0x6e,0x38,0xd3,0xac,0xd0,0x7e,0xad,0x9e,0xf8,0x87,0x95,0x63,0x15,
-0x65,0xa3,0xd4,0xb3,0x9a,0x6c,0xac,0xcd,0x2a,0x54,0x83,0x13,0xc4,0xb4,0x94,0xfa,
-0x76,0x87,0xc5,0x8b,0x4a,0x10,0x92,0x05,0xd1,0x0e,0x97,0xfd,0xc8,0xfb,0xc5,0xdc,
-0x21,0x4c,0xc8,0x77,0x5c,0xed,0x32,0x22,0x77,0xc1,0x38,0x30,0xd7,0x8e,0x2a,0x70,
-0x72,0x67,0x13,0xe4,0xb7,0x18,0xd4,0x76,0xdd,0x32,0x12,0xf4,0x5d,0xc9,0xec,0xc1,
-0x2c,0x8a,0xfe,0x08,0x6c,0xea,0xf6,0xab,0x5a,0x0e,0x8e,0x81,0x1d,0xc8,0x5a,0x4b,
-0xed,0xb9,0x7f,0x4b,0x67,0xe3,0x65,0x46,0xc9,0xf2,0xab,0x37,0x0a,0x98,0x67,0x5b,
-0xb1,0x3b,0x02,0x91,0x38,0x71,0xea,0x62,0x88,0xae,0xb6,0xdb,0xfc,0x55,0x79,0x33,
-0x69,0x95,0x51,0xb6,0xe1,0x3b,0xab,0x22,0x68,0x54,0xf9,0x89,0x9c,0x94,0xe0,0xe3,
-0xd3,0x48,0x5c,0xe9,0x78,0x5b,0xb3,0x4b,0xba,0xd8,0x48,0xd8,0xaf,0x91,0x4e,0x23,
-0x38,0x23,0x23,0x6c,0xdf,0x2e,0xf0,0xff,0xac,0x1d,0x2d,0x27,0x10,0x45,0xa3,0x2d,
-0x8b,0x00,0xcd,0xe2,0xfc,0xb7,0xdb,0x52,0x13,0xb7,0x66,0x79,0xd9,0xd8,0x29,0x0e,
-0x32,0xbd,0x52,0x6b,0x75,0x71,0x08,0x83,0x1b,0x67,0x28,0x93,0x97,0x97,0x32,0xff,
-0x8b,0xd3,0x98,0xa3,0xce,0x2b,0x88,0x37,0x1c,0xcc,0xa0,0xd1,0x19,0x9b,0xe6,0x11,
-0xfc,0xc0,0x3c,0x4e,0xe1,0x35,0x49,0x29,0x19,0xcf,0x1d,0xe1,0x60,0x74,0xc0,0xe9,
-0xf7,0xb4,0x99,0xa0,0x23,0x50,0x51,0x78,0xcf,0xc0,0xe5,0xc2,0x1c,0x16,0xd2,0x24,
-0x5a,0x63,0x54,0x83,0xaa,0x74,0x3d,0x41,0x0d,0x52,0xee,0xfe,0x0f,0x4d,0x13,0xe1,
-0x27,0x00,0xc4,0xf3,0x2b,0x55,0xe0,0x9c,0x81,0xe0,0xfc,0xc2,0x13,0xd4,0x39,0x09
-};
-
-unsigned char results4[SHS_DIGESTSIZE] = {
-0x13,0x62,0xfc,0x87,0x68,0x33,0xd5,0x1d,0x2f,0x0c,
-0x73,0xe3,0xfb,0x87,0x6a,0x6b,0xc3,0x25,0x54,0xfc};
-
-static void test4(void)
-{
-       SHS_INFO si[1];
-       unsigned char digest[SHS_DIGESTSIZE];
-       int failed;
-       int i;
-
-       printf("Running SHS test 4 ...\n");
-       shsInit(si);
-       shsUpdate(si, randdata, 19);
-       shsFinal(si);
-       memcpy(digest, shsDigest(si), SHS_DIGESTSIZE);
-       if ((failed = memcmp(digest, results4, SHS_DIGESTSIZE)) != 0)
-       {
-               fprintf(stderr,"SHS test 4 failed!\n");
-               rc = 1;
-       }
-       printf ("%s, results = ", failed ? "Failed" : "Passed");
-       for (i = 0; i < SHS_DIGESTSIZE; ++i)
-               printf("%02x",digest[i]);
-       if (failed)
-       {
-               printf ("\n, expected ");
-               for (i = 0; i < SHS_DIGESTSIZE; ++i)
-                       printf("%02x",results4[i]);
-       }
-       printf("\n");
-}
-
-unsigned char results5[SHS_DIGESTSIZE] = {
-0x19,0x4d,0xf6,0xeb,0x8e,0x02,0x6d,0x37,0x58,0x64,
-0xe5,0x95,0x19,0x2a,0xdd,0x1c,0xc4,0x3c,0x24,0x86};
-
-static void test5(void)
-{
-       SHS_INFO si[1];
-       unsigned char digest[SHS_DIGESTSIZE];
-       int failed;
-       int i;
-
-       printf("Running SHS test 5 ...\n");
-       shsInit(si);
-       shsUpdate(si, randdata, 19);
-       shsUpdate(si, randdata+32, 15);
-       shsFinal(si);
-       memcpy(digest, shsDigest(si), SHS_DIGESTSIZE);
-       if ((failed = memcmp(digest, results5, SHS_DIGESTSIZE)) != 0)
-       {
-               fprintf(stderr,"SHS test 5 failed!\n");
-               rc = 1;
-       }
-       printf ("%s, results = ", failed ? "Failed" : "Passed");
-       for (i = 0; i < SHS_DIGESTSIZE; ++i)
-               printf("%02x",digest[i]);
-       if (failed)
-       {
-               printf ("\n, expected ");
-               for (i = 0; i < SHS_DIGESTSIZE; ++i)
-                       printf("%02x",results5[i]);
-       }
-       printf("\n");
-}
-
-unsigned char results6[SHS_DIGESTSIZE] = {
-0x4e,0x16,0x57,0x9d,0x4b,0x48,0xa9,0x1c,0x88,0x72,
-0x83,0xdb,0x88,0xd1,0xea,0x3a,0x45,0xdf,0xa1,0x10};
-
-static void test6(void)
-{
-       struct {
-               long pad1;
-               SHS_INFO si1;
-               long pad2;
-               SHS_INFO si2;
-               long pad3;
-       } sdata;
-       unsigned char digest[SHS_DIGESTSIZE];
-       int failed;
-       unsigned int i, j;
-
-       printf("Running SHS test 6 ...\n");
-       sdata.pad1 = 0x12345678;
-       sdata.pad2 = 0x87654321;
-       sdata.pad3 = 0x78563412;
-       shsInit((&sdata.si2));
-if (sdata.pad2 != 0x87654321) {
-printf ("Overrun #20 %#lx\n",
-sdata.pad2);
-sdata.pad2 = 0x87654321;
-}
-if (sdata.pad3 != 0x78563412) {
-printf ("Overrun #21 %#lx\n",
-sdata.pad3);
-sdata.pad3 = 0x78563412;
-}
-       for (i = 0; i < 400; ++i)
-       {
-               shsInit(&sdata.si1);
-if (sdata.pad1 != 0x12345678) {
-printf ("Overrun #22 %#lx at %d\n",
-sdata.pad1, i);
-sdata.pad1 = 0x12345678;
-}
-if (sdata.pad2 != 0x87654321) {
-printf ("Overrun #23 %#lx at %d\n",
-sdata.pad2, i);
-sdata.pad2 = 0x87654321;
-}
-               shsUpdate(&sdata.si1, (randdata+sizeof(randdata))-i, i);
-if (sdata.pad1 != 0x12345678) {
-printf ("Overrun #24 %#lx at %d\n",
-sdata.pad1, i);
-sdata.pad1 = 0x12345678;
-}
-if (sdata.pad2 != 0x87654321) {
-printf ("Overrun #25 %#lx at %d\n",
-sdata.pad2, i);
-sdata.pad2 = 0x87654321;
-}
-               shsFinal(&sdata.si1);
-if (sdata.pad1 != 0x12345678) {
-printf ("Overrun #26 %#lx at %d\n",
-sdata.pad1, i);
-sdata.pad1 = 0x12345678;
-}
-if (sdata.pad2 != 0x87654321) {
-printf ("Overrun #27 %#lx at %d\n",
-sdata.pad2, i);
-sdata.pad2 = 0x87654321;
-}
-               memcpy(digest, shsDigest(&sdata.si1), SHS_DIGESTSIZE);
-               if (Dflag & 1)
-               {
-                       printf ("%d: ", i);
-                       for (j = 0; j < SHS_DIGESTSIZE; ++j)
-                               printf("%02x",digest[j]);
-                       printf("\n");
-               }
-               shsUpdate((&sdata.si2), digest, SHS_DIGESTSIZE);
-if (sdata.pad2 != 0x87654321) {
-printf ("Overrun #28 %#lx at %d\n",
-sdata.pad2, i);
-sdata.pad2 = 0x87654321;
-}
-if (sdata.pad3 != 0x78563412) {
-printf ("Overrun #29 %#lx at %d\n",
-sdata.pad3, i);
-sdata.pad3 = 0x78563412;
-}
-               if (Dflag & 2)
-                       printf ("%d: %08lx%08lx%08lx%08lx%08lx\n",
-                               i,
-                               (unsigned long) sdata.si2.digest[0],
-                               (unsigned long) sdata.si2.digest[1],
-                               (unsigned long) sdata.si2.digest[2],
-                               (unsigned long) sdata.si2.digest[3],
-                               (unsigned long) sdata.si2.digest[4]);
-       }
-       shsFinal((&sdata.si2));
-if (sdata.pad2 != 0x87654321) {
-printf ("Overrun #30 %#lx\n",
-sdata.pad2);
-sdata.pad2 = 0x87654321;
-}
-if (sdata.pad3 != 0x78563412) {
-printf ("Overrun #31 %#lx\n",
-sdata.pad3);
-sdata.pad3 = 0x78563412;
-}
-       memcpy(digest, shsDigest((&sdata.si2)), SHS_DIGESTSIZE);
-       if ((failed = memcmp(digest, results6, SHS_DIGESTSIZE)) != 0)
-       {
-               fprintf(stderr,"SHS test 6 failed!\n");
-               rc = 1;
-       }
-       printf ("%s, results = ", failed ? "Failed" : "Passed");
-       for (i = 0; i < SHS_DIGESTSIZE; ++i)
-               printf("%02x",digest[i]);
-       if (failed)
-       {
-               printf ("\n, expected ");
-               for (i = 0; i < SHS_DIGESTSIZE; ++i)
-                       printf("%02x",results6[i]);
-       }
-       printf("\n");
-}
-
-unsigned char results7[SHS_DIGESTSIZE] = {
-0x89,0x41,0x65,0xce,0x76,0xc1,0xd1,0xd1,0xc3,0x6f,
-0xab,0x92,0x79,0x30,0x01,0x71,0x63,0x1f,0x74,0xfe};
-
-unsigned int jfsize[] = {0,1,31,32,
-       33,55,56,63,
-       64,65,71,72,
-       73,95,96,97,
-       119,120,123,127};
-unsigned int kfsize[] = {0,1,31,32,33,55,56,63};
-
-static void test7(void)
-{
-       struct {
-               long pad1;
-               SHS_INFO si1;
-               long pad2;
-               SHS_INFO si2;
-               long pad3;
-       } sdata;
-       unsigned char digest[SHS_DIGESTSIZE];
-       int failed;
-       unsigned int i, j, k, l;
-
-       printf("Running SHS test 7 ...\n");
-       sdata.pad1 = 0x12345678;
-       sdata.pad2 = 0x87654321;
-       sdata.pad3 = 0x78563412;
-       shsInit((&sdata.si2));
-       for (i = 1; i <= 128; ++i)
-       for (j = 0; j < 20; ++j)
-       for (k = 0; k < 8; ++k)
-       {
-               shsInit(&sdata.si1);
-               shsUpdate(&sdata.si1, (randdata+80+j), i);
-if (sdata.pad1 != 0x12345678) {
-printf ("Overrun #1 %#lx at %d,%d,%d\n",
-sdata.pad1, i,j,k);
-sdata.pad1 = 0x12345678;
-}
-if (sdata.pad2 != 0x87654321) {
-printf ("Overrun #2 %#lx at %d,%d,%d\n",
-sdata.pad2, i,j,k);
-sdata.pad2 = 0x87654321;
-}
-               shsUpdate(&sdata.si1, randdata+i, jfsize[j]);
-if (sdata.pad1 != 0x12345678) {
-printf ("Overrun #3 %#lx at %d,%d,%d\n",
-sdata.pad1, i,j,k);
-sdata.pad1 = 0x12345678;
-}
-if (sdata.pad2 != 0x87654321) {
-printf ("Overrun #4 %#lx at %d,%d,%d\n",
-sdata.pad2, i,j,k);
-sdata.pad2 = 0x87654321;
-}
-               if (k) shsUpdate(&sdata.si1, randdata+(i^j), kfsize[k]);
-if (sdata.pad1 != 0x12345678) {
-printf ("Overrun #5 %#lx at %d,%d,%d\n",
-sdata.pad1, i,j,k);
-sdata.pad1 = 0x12345678;
-}
-if (sdata.pad2 != 0x87654321) {
-printf ("Overrun #6 %#lx at %d,%d,%d\n",
-sdata.pad2, i,j,k);
-sdata.pad2 = 0x87654321;
-}
-               shsFinal(&sdata.si1);
-if (sdata.pad1 != 0x12345678) {
-printf ("Overrun #7 %#lx at %d,%d,%d\n",
-sdata.pad1, i,j,k);
-sdata.pad1 = 0x12345678;
-}
-if (sdata.pad2 != 0x87654321) {
-printf ("Overrun #8 %#lx at %d,%d,%d\n",
-sdata.pad2, i,j,k);
-sdata.pad2 = 0x87654321;
-}
-               memcpy(digest, shsDigest(&sdata.si1), SHS_DIGESTSIZE);
-               if (Dflag & 1)
-               {
-                       printf ("%d,%d,%d: ", i, j, k);
-                       for (l = 0; l < SHS_DIGESTSIZE; ++l)
-                               printf("%02x",digest[l]);
-                       printf("\n");
-               }
-               shsUpdate((&sdata.si2), digest, SHS_DIGESTSIZE);
-if (sdata.pad2 != 0x87654321) {
-printf ("Overrun #9 %#lx at %d,%d,%d\n",
-sdata.pad2, i,j,k);
-sdata.pad2 = 0x87654321;
-}
-if (sdata.pad3 != 0x78563412) {
-printf ("Overrun #10 %#lx at %d,%d,%d\n",
-sdata.pad3, i,j,k);
-sdata.pad3 = 0x78563412;
-}
-               if (Dflag & 2)
-                       printf ("%d,%d,%d: %08lx%08lx%08lx%08lx%08lx\n",
-                               i,j,k,
-                               (unsigned long) sdata.si2.digest[0],
-                               (unsigned long) sdata.si2.digest[1],
-                               (unsigned long) sdata.si2.digest[2],
-                               (unsigned long) sdata.si2.digest[3],
-                               (unsigned long) sdata.si2.digest[4]);
-       }
-       shsFinal((&sdata.si2));
-       memcpy(digest, shsDigest((&sdata.si2)), SHS_DIGESTSIZE);
-       if ((failed = memcmp(digest, results7, SHS_DIGESTSIZE)) != 0)
-       {
-               fprintf(stderr,"SHS test 7 failed!\n");
-               rc = 1;
-       }
-       printf ("%s, results = ", failed ? "Failed" : "Passed");
-       for (i = 0; i < SHS_DIGESTSIZE; ++i)
-               printf("%02x",digest[i]);
-       if (failed)
-       {
-               printf ("\n, expected ");
-               for (i = 0; i < SHS_DIGESTSIZE; ++i)
-                       printf("%02x",results7[i]);
-       }
-       printf("\n");
-}
index 953497e17673d4d06940a271ea1a4a3d2e876d46..097886c46f9e2561be2974dba6a84941c27fd7e0 100644 (file)
@@ -1,6 +1,3 @@
-des_FP_table
-des_IP_table
-des_SP_table
 is_coll_proof_cksum
 is_keyed_cksum
 krb5_MD4Final
index 855e6a470dfd04b585315fdb5a1b5e9b10908a46..c69ba44957bda2fd9086dea7cce6a270dd0a0c92 100644 (file)
@@ -32,9 +32,11 @@ static void init ()
            test_case[i].input[j] = 0xff & rand();
        }
 
-    r = aes_enc_key (key, sizeof(key), &ctx);
+    r = krb5int_aes_enc_key (key, sizeof(key), &ctx);
+    //r = aes_enc_key (key, sizeof(key), &ctx);
     if (!r) fprintf(stderr, "error, line %d\n", __LINE__), exit(1);
-    r = aes_dec_key (key, sizeof(key), &dctx);
+    r = krb5int_aes_dec_key (key, sizeof(key), &dctx);
+    //r = aes_dec_key (key, sizeof(key), &dctx);
     if (!r) fprintf(stderr, "error, line %d\n", __LINE__), exit(1);
 }
 
diff --git a/src/lib/crypto/openssl/des/f_tables.c b/src/lib/crypto/openssl/des/f_tables.c
deleted file mode 100644 (file)
index a8d161d..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * lib/crypto/openssl/des/f_tables.c
- *
- * Copyright 2009 by the Massachusetts Institute
- * of Technology.
- * All Rights Reserved.
- *
- */
-
-#include "des_int.h"
-#include "f_tables.h"
-
-const unsigned DES_INT32 des_IP_table[] = {};
-const unsigned DES_INT32 des_FP_table[] = {};
-const unsigned DES_INT32 des_SP_table[] = {};
-
-
diff --git a/src/lib/crypto/openssl/des/f_tables.h b/src/lib/crypto/openssl/des/f_tables.h
deleted file mode 100644 (file)
index af20cd5..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
- * lib/crypto/des/f_tables.h
- *
- * Copyright 2009 by the Massachusetts Institute
- * of Technology.
- * All Rights Reserved.
- *
- */
-
index 1d4dcbe97550f304863252daea45213e2eaa77a7..08954482b49b8c80537f05dd2a54c153621b7473 100644 (file)
@@ -3,48 +3,53 @@
 #
 des.so des.po $(OUTPRE)des.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(BUILDTOP)/include/krb5/krb5.h $(BUILDTOP)/include/osconf.h \
-  $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/autoconf.h \
-  $(SRCTOP)/include/k5-buf.h $(SRCTOP)/include/k5-err.h \
-  $(SRCTOP)/include/k5-gmt_mktime.h $(SRCTOP)/include/k5-int-pkinit.h \
-  $(SRCTOP)/include/k5-int.h $(SRCTOP)/include/k5-platform.h \
-  $(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
-  $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/locate_plugin.h \
+  $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/k5-buf.h \
+  $(SRCTOP)/include/k5-err.h $(SRCTOP)/include/k5-gmt_mktime.h \
+  $(SRCTOP)/include/k5-int-pkinit.h $(SRCTOP)/include/k5-int.h \
+  $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-plugin.h \
+  $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
+  $(SRCTOP)/include/krb5/authdata_plugin.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/des/des_int.h \
-  $(srcdir)/../../krb/aead.h $(srcdir)/../cksumtypes.h des.c \
-  enc_provider.h
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/../des/des_int.h \
+  $(srcdir)/des.c $(srcdir)/enc_provider.h \
+  $(srcdir)/../../krb/aead.h $(srcdir)/../../krb/cksumtypes.h \
+  $(srcdir)/../../krb/rand2key/rand2key.h
 des3.so des3.po $(OUTPRE)des3.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(BUILDTOP)/include/krb5/krb5.h $(BUILDTOP)/include/osconf.h \
-  $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/autoconf.h \
-  $(SRCTOP)/include/k5-buf.h $(SRCTOP)/include/k5-err.h \
-  $(SRCTOP)/include/k5-gmt_mktime.h $(SRCTOP)/include/k5-int-pkinit.h \
-  $(SRCTOP)/include/k5-int.h $(SRCTOP)/include/k5-platform.h \
-  $(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
-  $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/locate_plugin.h \
+  $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/k5-buf.h \
+  $(SRCTOP)/include/k5-err.h $(SRCTOP)/include/k5-gmt_mktime.h \
+  $(SRCTOP)/include/k5-int-pkinit.h $(SRCTOP)/include/k5-int.h \
+  $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-plugin.h \
+  $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
+  $(SRCTOP)/include/krb5/authdata_plugin.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/des/des_int.h \
-  $(srcdir)/../../krb/aead.h $(srcdir)/../cksumtypes.h des3.c
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/../des/des_int.h \
+  $(srcdir)/des3.c $(srcdir)/../../krb/aead.h \
+  $(srcdir)/../../krb/cksumtypes.h $(srcdir)/../../krb/rand2key/rand2key.h
 aes.so aes.po $(OUTPRE)aes.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(BUILDTOP)/include/krb5/krb5.h $(BUILDTOP)/include/osconf.h \
-  $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/autoconf.h \
-  $(SRCTOP)/include/k5-buf.h $(SRCTOP)/include/k5-err.h \
-  $(SRCTOP)/include/k5-gmt_mktime.h $(SRCTOP)/include/k5-int-pkinit.h \
-  $(SRCTOP)/include/k5-int.h $(SRCTOP)/include/k5-platform.h \
-  $(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
-  $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/locate_plugin.h \
+  $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/k5-buf.h \
+  $(SRCTOP)/include/k5-err.h $(SRCTOP)/include/k5-gmt_mktime.h \
+  $(SRCTOP)/include/k5-int-pkinit.h $(SRCTOP)/include/k5-int.h \
+  $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-plugin.h \
+  $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
+  $(SRCTOP)/include/krb5/authdata_plugin.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/aes/aes.h \
-  $(srcdir)/../../builtin/aes/uitypes.h $(srcdir)/../../krb/aead.h \
-  $(srcdir)/../cksumtypes.h aes.c enc_provider.h
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/../aes/aes.h \
+  $(srcdir)/../aes/uitypes.h $(srcdir)/aes.c \
+  $(srcdir)/enc_provider.h \
+  $(srcdir)/../../krb/aead.h $(srcdir)/../../krb/cksumtypes.h \
+  $(srcdir)/../../krb/rand2key/rand2key.h
 rc4.so rc4.po $(OUTPRE)rc4.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(BUILDTOP)/include/krb5/krb5.h $(BUILDTOP)/include/osconf.h \
-  $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/autoconf.h \
-  $(SRCTOP)/include/k5-buf.h $(SRCTOP)/include/k5-err.h \
-  $(SRCTOP)/include/k5-gmt_mktime.h $(SRCTOP)/include/k5-int-pkinit.h \
-  $(SRCTOP)/include/k5-int.h $(SRCTOP)/include/k5-platform.h \
-  $(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
-  $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/locate_plugin.h \
+  $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/k5-buf.h \
+  $(SRCTOP)/include/k5-err.h $(SRCTOP)/include/k5-gmt_mktime.h \
+  $(SRCTOP)/include/k5-int-pkinit.h $(SRCTOP)/include/k5-int.h \
+  $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-plugin.h \
+  $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
+  $(SRCTOP)/include/krb5/authdata_plugin.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/arcfour/arcfour-int.h \
-  $(srcdir)/../../builtin/arcfour/arcfour.h $(srcdir)/../../krb/aead.h \
-  $(srcdir)/../cksumtypes.h enc_provider.h rc4.c
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/../arcfour/arcfour-int.h \
+  $(srcdir)/../arcfour/arcfour.h $(srcdir)/enc_provider.h \
+  $(srcdir)/rc4.c $(srcdir)/../../krb/aead.h \
+  $(srcdir)/../../krb/cksumtypes.h $(srcdir)/../../krb/rand2key/rand2key.h
index e20e42e23d8cf4ea94f7b81fc04745e3ae230f04..d2ea66df90bf0ad5c3e6f12d4747a43c64afc52c 100644 (file)
@@ -220,8 +220,11 @@ k5_des3_encrypt_iov(krb5_key key,
                                 oblock, MIT_DES_BLOCK_LENGTH, &output_pos);
     }
 
-    if(ret)
+    if(ret) {
+        /*if (ivec != NULL && ivec->data)
+            memcpy(ivec->data, oblock, MIT_DES_BLOCK_LENGTH); */
         ret = EVP_EncryptFinal_ex(&ciph_ctx, oblock+input_pos.data_pos, &tmp_len);
+    }
 
     EVP_CIPHER_CTX_cleanup(&ciph_ctx);
 
@@ -300,9 +303,12 @@ k5_des3_decrypt_iov(krb5_key key,
                                 oblock, MIT_DES_BLOCK_LENGTH, &output_pos);
     }
 
-    if(ret)
+    if(ret) {
+        /*if (ivec != NULL && ivec->data)
+            memcpy(ivec->data, oblock, MIT_DES_BLOCK_LENGTH); */
         ret = EVP_DecryptFinal_ex(&ciph_ctx,
                                   oblock + input_pos.data_pos, &tmp_len);
+    }
 
     EVP_CIPHER_CTX_cleanup(&ciph_ctx);
 
index 1decaf9715d28e15426c9fdc69c8093a098062ae..dfb1d70f048e72f32f52e6342899eeb99d4b00f3 100644 (file)
@@ -3,11 +3,12 @@
 #
 md4.so md4.po $(OUTPRE)md4.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(BUILDTOP)/include/krb5/krb5.h $(BUILDTOP)/include/osconf.h \
-  $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/autoconf.h \
-  $(SRCTOP)/include/k5-buf.h $(SRCTOP)/include/k5-err.h \
-  $(SRCTOP)/include/k5-gmt_mktime.h $(SRCTOP)/include/k5-int-pkinit.h \
-  $(SRCTOP)/include/k5-int.h $(SRCTOP)/include/k5-platform.h \
-  $(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
-  $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/locate_plugin.h \
+  $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/k5-buf.h \
+  $(SRCTOP)/include/k5-err.h $(SRCTOP)/include/k5-gmt_mktime.h \
+  $(SRCTOP)/include/k5-int-pkinit.h $(SRCTOP)/include/k5-int.h \
+  $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-plugin.h \
+  $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
+  $(SRCTOP)/include/krb5/authdata_plugin.h $(SRCTOP)/include/krb5/locate_plugin.h \
   $(SRCTOP)/include/krb5/preauth_plugin.h $(SRCTOP)/include/port-sockets.h \
-  $(SRCTOP)/include/socket-utils.h md4.c rsa-md4.h
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/md4.c \
+  $(srcdir)/rsa-md4.h
index fc3378d2e7379143c0039238aeb8e5378548a79d..abfc54912504cde4ccf7906de412664b7f6f6b60 100644 (file)
@@ -3,11 +3,12 @@
 #
 md5.so md5.po $(OUTPRE)md5.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(BUILDTOP)/include/krb5/krb5.h $(BUILDTOP)/include/osconf.h \
-  $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/autoconf.h \
-  $(SRCTOP)/include/k5-buf.h $(SRCTOP)/include/k5-err.h \
-  $(SRCTOP)/include/k5-gmt_mktime.h $(SRCTOP)/include/k5-int-pkinit.h \
-  $(SRCTOP)/include/k5-int.h $(SRCTOP)/include/k5-platform.h \
-  $(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
-  $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/locate_plugin.h \
+  $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/k5-buf.h \
+  $(SRCTOP)/include/k5-err.h $(SRCTOP)/include/k5-gmt_mktime.h \
+  $(SRCTOP)/include/k5-int-pkinit.h $(SRCTOP)/include/k5-int.h \
+  $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-plugin.h \
+  $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
+  $(SRCTOP)/include/krb5/authdata_plugin.h $(SRCTOP)/include/krb5/locate_plugin.h \
   $(SRCTOP)/include/krb5/preauth_plugin.h $(SRCTOP)/include/port-sockets.h \
-  $(SRCTOP)/include/socket-utils.h md5.c rsa-md5.h
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/md5.c \
+  $(srcdir)/rsa-md5.h
index a8f51a8e6b3e1ea0a3d22834b5747411adf7270c..a5e424d7960b23daa428a95a615ffa757d2cf123 100644 (file)
@@ -3,11 +3,12 @@
 #
 shs.so shs.po $(OUTPRE)shs.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(BUILDTOP)/include/krb5/krb5.h $(BUILDTOP)/include/osconf.h \
-  $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/autoconf.h \
-  $(SRCTOP)/include/k5-buf.h $(SRCTOP)/include/k5-err.h \
-  $(SRCTOP)/include/k5-gmt_mktime.h $(SRCTOP)/include/k5-int-pkinit.h \
-  $(SRCTOP)/include/k5-int.h $(SRCTOP)/include/k5-platform.h \
-  $(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
-  $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/locate_plugin.h \
+  $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/k5-buf.h \
+  $(SRCTOP)/include/k5-err.h $(SRCTOP)/include/k5-gmt_mktime.h \
+  $(SRCTOP)/include/k5-int-pkinit.h $(SRCTOP)/include/k5-int.h \
+  $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-plugin.h \
+  $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/krb5.h \
+  $(SRCTOP)/include/krb5/authdata_plugin.h $(SRCTOP)/include/krb5/locate_plugin.h \
   $(SRCTOP)/include/krb5/preauth_plugin.h $(SRCTOP)/include/port-sockets.h \
-  $(SRCTOP)/include/socket-utils.h shs.c shs.h
+  $(SRCTOP)/include/socket-utils.h $(srcdir)/shs.c \
+  $(srcdir)/shs.h
index 68ede98494945d7646154f408aa597ea8544d7ad..c583d66cc483256c23f285dadbb9907de4682250 100644 (file)
@@ -41,21 +41,21 @@ STOBJLISTS= \
        ../../lib/krb5/unicode/OBJS.ST \
        ../profile/OBJS.ST \
        ../../lib/crypto/krb/crc32/OBJS.ST \
-       ../../lib/crypto/builtin/des/OBJS.ST \
+       ../../lib/crypto/@CRYPTO_IMPL@/des/OBJS.ST \
        ../../lib/crypto/krb/dk/OBJS.ST \
-       ../../lib/crypto/builtin/enc_provider/OBJS.ST \
+       ../../lib/crypto/@CRYPTO_IMPL@/enc_provider/OBJS.ST \
        ../../lib/crypto/krb/hash_provider/OBJS.ST \
        ../../lib/crypto/krb/keyhash_provider/OBJS.ST \
-       ../../lib/crypto/builtin/md4/OBJS.ST \
-       ../../lib/crypto/builtin/md5/OBJS.ST \
+       ../../lib/crypto/@CRYPTO_IMPL@/md4/OBJS.ST \
+       ../../lib/crypto/@CRYPTO_IMPL@/md5/OBJS.ST \
        ../../lib/crypto/krb/old/OBJS.ST \
        ../../lib/crypto/krb/raw/OBJS.ST \
-       ../../lib/crypto/builtin/sha1/OBJS.ST \
-       ../../lib/crypto/builtin/arcfour/OBJS.ST \
-       ../../lib/crypto/builtin/aes/OBJS.ST \
+       ../../lib/crypto/@CRYPTO_IMPL@/sha1/OBJS.ST \
+       ../../lib/crypto/@CRYPTO_IMPL@/arcfour/OBJS.ST \
+       ../../lib/crypto/@CRYPTO_IMPL@/aes/OBJS.ST \
        ../../lib/crypto/krb/yarrow/OBJS.ST \
        ../../lib/crypto/krb/OBJS.ST \
-       ../../lib/crypto/builtin/OBJS.ST \
+       ../../lib/crypto/@CRYPTO_IMPL@/OBJS.ST \
        ../../lib/crypto/OBJS.ST \
        ../et/OBJS.ST \
        ../support/OBJS.ST